Documentation
Table of Contents

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

apiKey string
model string

Returns

IntentClientBuilder

Exceptions

ArgumentException

The primary provider is already named "OpenAI" (for example after UseOpenAI(string, string?)). Nothing is created.