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

422 Failed to deserialize the JSON body into the target type #299

Open
wjyzhixing opened this issue Jan 20, 2025 · 4 comments
Open

422 Failed to deserialize the JSON body into the target type #299

wjyzhixing opened this issue Jan 20, 2025 · 4 comments

Comments

@wjyzhixing
Copy link

Image

422 Failed to deserialize the JSON body into the target type: messages[1]: data did not match any variant of untagged enum ChatCompletionRequestContent at line 24 column 3
Error: 422 Failed to deserialize the JSON body into the target type: messages[1]: data did not match any variant of untagged enum ChatCompletionRequestContent at line 24 column 3
at e.generate (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:3090070)
at f.makeStatusError (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:3078476)
at f.makeRequest (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:3079592)
at async B (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:4241898)
at async L (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:4243040)
at async v (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:4225886)
at async e.plan (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:4259888)
at async Object.executor (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:4318266)
at async e.Executor.flush (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:4270508)
at async G.action (chrome-extension://gbldofcpkknbggpkmbdaefngejllnief/lib/popup.js:1:4320096)

Version:
Midscene.js Chrome Extension v0.23 (SDK v0.9.2)
Chrome:132.0.6834.83

@CRAZYCAT-SH
Copy link

same problem ,the test case unpass ,config
MIDSCENE_MODEL_NAME="deepseek-chat"
OPENAI_API_KEY="sk"
OPENAI_BASE_URL="https://api.deepseek.com/v1"

Image

@wjyzhixing
Copy link
Author

I use deepseek too.maybe deepseek is not ok?

@CRAZYCAT-SH
Copy link

Image
may be deepseek not support the param "temperature"?

@CRAZYCAT-SH
Copy link

I want to know if there is a way to configure not to pass this parameter

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

2 participants