(&self)
| 16 | |
| 17 | impl Provider { |
| 18 | pub fn default_base_url(&self) -> &'static str { |
| 19 | match self { |
| 20 | Provider::Openai => "https://api.openai.com", |
| 21 | Provider::Openrouter => "https://openrouter.ai/api", |
| 22 | Provider::Anthropic => "https://api.anthropic.com", |
| 23 | Provider::Minimax => "https://api.minimax.io", |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | #[derive(Debug, Deserialize, Serialize, Clone)] |