OpenAICompatibleChatModel constructor
OpenAICompatibleChatModel({})
Creates a client.
Implementation
OpenAICompatibleChatModel({
required this.baseUrl,
required this.model,
this.apiKey,
this.maxTokens,
this.maxTokensField = 'max_tokens',
this.extraBody = const {},
this.headers = const {},
Duration timeout = const Duration(minutes: 10),
int maxRetries = 2,
HttpClient? httpClient,
}) : _http = HttpTransport(
client: httpClient,
timeout: timeout,
maxRetries: maxRetries,
);