OpenAIConfig constructor
const
OpenAIConfig({
- required String apiKey,
- String baseUrl = ProviderDefaults.openaiBaseUrl,
- String model = ProviderDefaults.openaiDefaultModel,
- int? maxTokens,
- double? temperature,
- String? systemPrompt,
- Duration? timeout,
- double? topP,
- int? topK,
- List<
Tool> ? tools, - ToolChoice? toolChoice,
- ReasoningEffort? reasoningEffort,
- StructuredOutputFormat? jsonSchema,
- String? voice,
- String? embeddingEncodingFormat,
- int? embeddingDimensions,
- List<
String> ? stopSequences, - String? user,
- ServiceTier? serviceTier,
- bool useResponsesAPI = false,
- String? previousResponseId,
- List<
OpenAIBuiltInTool> ? builtInTools, - LLMConfig? originalConfig,
Implementation
const OpenAIConfig({
required this.apiKey,
this.baseUrl = ProviderDefaults.openaiBaseUrl,
this.model = ProviderDefaults.openaiDefaultModel,
this.maxTokens,
this.temperature,
this.systemPrompt,
this.timeout,
this.topP,
this.topK,
this.tools,
this.toolChoice,
this.reasoningEffort,
this.jsonSchema,
this.voice,
this.embeddingEncodingFormat,
this.embeddingDimensions,
this.stopSequences,
this.user,
this.serviceTier,
this.useResponsesAPI = false,
this.previousResponseId,
this.builtInTools,
LLMConfig? originalConfig,
}) : _originalConfig = originalConfig;