defaultBaseUrl static method

String defaultBaseUrl(
  1. ApiProviderType type
)

Implementation

static String defaultBaseUrl(ApiProviderType type) => switch (type) {
  ApiProviderType.gemini =>
    'https://generativelanguage.googleapis.com/v1beta',
  ApiProviderType.qwen => 'https://dashscope.aliyuncs.com/compatible-mode/v1',
  ApiProviderType.openai => 'https://api.openai.com/v1',
  ApiProviderType.deepseek => 'https://api.deepseek.com/v1',
  ApiProviderType.anthropic => 'https://api.anthropic.com',
  ApiProviderType.ollama => 'http://localhost:11434/v1',
  _ => 'https://api.openai.com/v1',
};