(api_key: impl Into<String>)
| 214 | |
| 215 | impl OpenAIProvider { |
| 216 | pub fn new(api_key: impl Into<String>) -> Self { |
| 217 | Self::with_config(OpenAIConfig { |
| 218 | api_key: api_key.into(), |
| 219 | base_url: None, |
| 220 | organization: None, |
| 221 | }) |
| 222 | } |
| 223 | |
| 224 | pub fn new_with_base_url(api_key: impl Into<String>, base_url: impl Into<String>) -> Self { |
| 225 | Self::with_config(OpenAIConfig { |
nothing calls this directly
no outgoing calls
no test coverage detected