exotic-emerald
exotic-emerald14mo ago

Error while using OpenAI Model

Getting below error with OpenAI gpt4o model but working fine with other models like claude.
An error occurred in this call: pipeline-error-azure-openai-llm-failed
An error occurred in this call: pipeline-error-azure-openai-llm-failed
19 Replies
Vapi
Vapi14mo ago
Relevant threads
These are relevant threads you might take a look into before continuing further: - <#1237515864874680362>
Vapi
Vapi14mo ago
@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 @Vapi Team for additional help.
correct-apricot
correct-apricot14mo ago
please share the call id.
exotic-emerald
exotic-emeraldOP14mo ago
Call id: 2d8f94a2-90c3-4c89-81b5-edad4a8e659d @Shubham Bajaj
correct-apricot
correct-apricot14mo ago
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:
"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"
}
}
"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"
}
}
exotic-emerald
exotic-emeraldOP14mo ago
But why it is working for other models.
correct-apricot
correct-apricot14mo ago
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.
exotic-emerald
exotic-emeraldOP14mo ago
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.
correct-apricot
correct-apricot14mo ago
Sure try and let me know.
exotic-emerald
exotic-emeraldOP14mo ago
See, I am not able to add items
No description
exotic-emerald
exotic-emeraldOP14mo ago
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
correct-apricot
correct-apricot14mo ago
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
exotic-emerald
exotic-emeraldOP14mo ago
okay let me come back to you on this by evening.
exotic-emerald
exotic-emeraldOP14mo ago
exotic-emerald
exotic-emeraldOP14mo ago
@Shubham Bajaj
Linear
Linear14mo ago
Linear
Linear14mo ago
Issue VAP-1581 created.
VAP-1581 - Tool Creation Failed
Failing to create tool for parameter type array<object>
Status
Triage
Vapi
correct-apricot
correct-apricot14mo ago
@YasH issues have been created will be resolved.

Did you find this page helpful?