Error while using OpenAI Model
# support
y
Getting below error with OpenAI gpt4o model but working fine with other models like claude.
Copy code
An error occurred in this call: pipeline-error-azure-openai-llm-failed
v
message has been deleted
@YasH I'm sorry to hear that you're experiencing issues with the OpenAI gpt4o model. This error message indicates that there might be a problem with the pipeline for the specific model you're trying to use. It could be a temporary issue or something that needs to be addressed by the support team. To assist you better, could you please provide me with more details about the context in which this error occurs? For example, are you using a specific function or feature when this error appears? Any additional information would be helpful in diagnosing the problem.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
please share the call id.
y
Call id: 2d8f94a2-90c3-4c89-81b5-edad4a8e659d
@Shubham Bajaj
s
Your
saveAllUserResponsesAtEnd
function schema is not correct. Error Message: "Invalid schema for function 'saveAllUserResponsesAtEnd': In context=('properties', 'question_and_respons_list'), array schema missing items" To fix this error, you need to modify the schema definition for the questionAndResponsList property. Here's how you can correct it:
Copy code
json
"questionAndResponsList": {
  "type": "array",
  "description": "List of questions are responses collected from interview. In the format of {questionId},{question},{response} and only one item in one row",
  "items": {
    "type": "string"
  }
}
y
But why it is working for other models.
s
For the array type you require to define items property as well.
Can you please share the call ids where it's working w/o items property.
y
Yes I was trying that only but it was giving errors on dashboard. let me retry and get back to you.
I am not sure that was after or before I made some schema updates. Let me try fresh again.
s
Sure try and let me know.
Earlier as well I got errors while creating array of objects.
write to describe the string?
2: Also how to make a function required?
I don't see the option in the dashboard
3: Lastly, I keep marking my tools "Async" in dashboard but it keeps on switching back to disabled. There is serious problem with updates on Vapi dashboard.
@Shubham Bajaj
s
1. share a loom video of unable to mark tools async and error creating array of objects 2. you make a function required(always call) using prompting
@YasH
y
okay let me come back to you on this by evening.
For creating tool with array of objects: https://www.loom.com/share/5edc97211191454181211d178f8ec1aa
@Shubham Bajaj
s
@YasH issues have been created will be resolved.
3 Views