Method UseOpenAIAsFallback
- Namespace
- IntentSharp
- Assembly
- IntentSharp.dll
UseOpenAIAsFallback(string, string?)
Uses OpenAI as the fallback provider, named "OpenAI". Calling it again replaces the fallback.
public IntentClientBuilder UseOpenAIAsFallback(string apiKey, string? model = null)
Parameters
apiKeystringmodelstring
Returns
Exceptions
- ArgumentException
The primary provider is already named "OpenAI" (for example after UseOpenAI(string, string?)). Nothing is created.