Create `OpenAI` configuration
(api_key: impl Into<String>, model: impl Into<String>)
| 238 | impl LlmConfig { |
| 239 | /// Create `OpenAI` configuration |
| 240 | pub fn openai(api_key: impl Into<String>, model: impl Into<String>) -> Self { |
| 241 | Self::OpenAI { |
| 242 | api_key: api_key.into(), |
| 243 | model: model.into(), |
| 244 | base_url: None, |
| 245 | organization: None, |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | /// Create `Anthropic` configuration |
| 250 | pub fn anthropic(api_key: impl Into<String>, model: impl Into<String>) -> Self { |
no outgoing calls