Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Connectivity - UI-TARS] aiQuery & aiAssert 返回 Error: 422 Failed to deserialize the JSON body into the target type #411

Open
robin-miro opened this issue Feb 22, 2025 · 1 comment

Comments

@robin-miro
Copy link

robin-miro commented Feb 22, 2025

If the error persists, tell us these information

  • Where are you using Midscene.js: playwright

  • The version of Midscene.js or Extension: 0.12.0

  • The error message:

当使用aiQuery获取时,

  const avaiableCountries = await aiQuery(
    'string[], find all avaiable countires in the popup'
  );

同样的问题也在aiAssert上可以复现, 好像我现在只能用.ai()

你可以试这个网站 https://www.vinted.com, 他会弹一个国家选择popup

Image Image
  • The model name and endpoint (if could be public)
MIDSCENE_MODEL_NAME="UI-TARS-7B-SFT"
MIDSCENE_USE_VLM_UI_TARS=1
@robin-miro robin-miro changed the title [Connectivity] aiQuery 返回 Error: 422 Failed to deserialize the JSON body into the target type [Connectivity] aiQuery & aiAssert 返回 Error: 422 Failed to deserialize the JSON body into the target type Feb 22, 2025
@robin-miro robin-miro changed the title [Connectivity] aiQuery & aiAssert 返回 Error: 422 Failed to deserialize the JSON body into the target type [Connectivity - UI-TARS] aiQuery & aiAssert 返回 Error: 422 Failed to deserialize the JSON body into the target type Feb 22, 2025
@robin-miro
Copy link
Author

got issue from Unit test

Image

passed when using gpt-4o, but failed using UI Tars

OPENAI_API_KEY="hf_<>"
OPENAI_BASE_URL="https://<>.huggingface.cloud/v1"

MIDSCENE_MODEL_NAME="UI-TARS-7B-SFT"
MIDSCENE_USE_VLM_UI_TARS=1
MIDSCENE_LANGSMITH_DEBUG=1

LANGSMITH_API_KEY=<>
LANGSMITH_ENDPOINT="https://api.smith.langchain.com"
LANGSMITH_TRACING_V2=true
LANGSMITH_PROJECT=<>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant