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

Error 422 for chat completion #1146

Open
aamirsadiq opened this issue Nov 6, 2024 · 1 comment
Open

Error 422 for chat completion #1146

aamirsadiq opened this issue Nov 6, 2024 · 1 comment
Labels

Comments

@aamirsadiq
Copy link

aamirsadiq commented Nov 6, 2024

Error:
openai.UnprocessableEntityError: Error code: 422 - {'detail': [{'loc': ['body', 'user'], 'msg': 'field required', 'type': 'value_error.missing'}

need to take this user from env and then send it to azure for bridgeIT:

response = client.chat.completions.create(
model="gpt-35-turbo", # model = "deployment_name".
messages=message_with_history,
user=f'{{"appkey": "{app_key}"}}'
)

Need User parameter in the API.
There's no way to pass the parameter.

@[email protected]

@suchintan
Copy link
Contributor

Hey! GPT-3.5 isn't supported inside Skyvern right now. ARe you able to try it with 4o or 4o mini instead?

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

No branches or pull requests

2 participants