-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
APIError message fields may be a array #381
Comments
Basically, it is a $ curl https://api.openai.com/v1/chat/completions -u :$OPENAI_API_KEY -H 'Content-Type: application/json' -d '{
"model": "gpt-3.5-turbo-0613",
"messages": [
{"role": "user", "content": "What is the weather like in Boston?"}
],
"functions": [
{
"name": "get_current_weather",
"parameters": {
"type": "object"
}
}
]
}'
{
"error":{
"message":[
"Invalid schema for function 'get_current_weather': In context=(), object schema missing properties"
],
"type":"invalid_request_error",
"param":null,
"code":null
}
} |
FYI: I requested multiple functions with invalid parameters to try it out. There is only one error in the array.
|
vvatanabe
added a commit
to vvatanabe/go-openai
that referenced
this issue
Jun 16, 2023
vvatanabe
added a commit
to vvatanabe/go-openai
that referenced
this issue
Jun 16, 2023
sashabaranov
pushed a commit
that referenced
this issue
Jun 17, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: