OpenAIConfig constructor

const OpenAIConfig({
  1. required String apiKey,
  2. String baseUrl = ProviderDefaults.openaiBaseUrl,
  3. String model = ProviderDefaults.openaiDefaultModel,
  4. int? maxTokens,
  5. double? temperature,
  6. String? systemPrompt,
  7. Duration? timeout,
  8. double? topP,
  9. int? topK,
  10. List<Tool>? tools,
  11. ToolChoice? toolChoice,
  12. ReasoningEffort? reasoningEffort,
  13. StructuredOutputFormat? jsonSchema,
  14. String? voice,
  15. String? embeddingEncodingFormat,
  16. int? embeddingDimensions,
  17. List<String>? stopSequences,
  18. String? user,
  19. ServiceTier? serviceTier,
  20. bool useResponsesAPI = false,
  21. String? previousResponseId,
  22. List<OpenAIBuiltInTool>? builtInTools,
  23. 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;