-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Omit textVerbosity option for providers other than Azure (gpt-5) #2387
Copy link
Copy link
Closed
Description
Azure's OpenAI compatible API does not seem to support that textVerbosity parameter. Currently the only way to disable sending that parameter it is to extend the azure provider. (See the code above.) I'm—however—using a proxy that uses Azure among other hosts (LiteLLM based) and have my provider configured like:
{
"provider": {
"my-custom-provider": {
"name": "My Custom Provider",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://my-provider.com",
"apiKey": "...",
"includeUsage": true
},
"models": {
"gpt-5": {}
}
}
}
}And see errors like:
AzureException BadRequestError - Unknown parameter: 'textVerbosity'
Any ideas on how we could hint at the config that the backend doesn't support that option?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels