ApiConfig.openai constructor
ApiConfig.openai({})
OpenAI-compatible provider (OpenAI, Ollama, DeepSeek, etc).
Implementation
factory ApiConfig.openai({
String? apiKey,
String baseUrl = 'https://api.openai.com/v1',
String model = 'gpt-4o',
int maxTokens = 16384,
}) => ApiConfig(
type: ApiProviderType.openai,
baseUrl: baseUrl,
apiKey: apiKey,
model: model,
maxTokens: maxTokens,
);