Module open_ai_model

Source

Structs§

OpenAiModel

Enums§

FallbackModelsTrue
These are the fallback models that will be used if the primary model fails. This shouldn’t be specified unless you have a specific reason to do so. Vapi will automatically find the fastest fallbacks that make sense.
ModelTrue
This is the OpenAI model that will be used. When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn’t be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. @default undefined
ProviderTrue
This is the provider that will be used for the model.
ToolStrictCompatibilityModeTrue
Azure OpenAI doesn’t support maxLength right now https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/structured-outputs?tabs=python-secure%2Cdotnet-entra-id&pivots=programming-language-csharp#unsupported-type-specific-keywords. Need to strip. - strip-parameters-with-unsupported-validation will strip parameters with unsupported validation. - strip-unsupported-validation will keep the parameters but strip unsupported validation. @default strip-unsupported-validation