(api_key: impl Into<String>, base_url: impl Into<String>)
| 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 { |
| 226 | api_key: api_key.into(), |
| 227 | base_url: Some(base_url.into()), |
| 228 | organization: None, |
| 229 | }) |
| 230 | } |
| 231 | |
| 232 | fn from_config(config: OpenAIConfig, legacy_only: bool) -> Self { |
| 233 | let models = vec![ |
nothing calls this directly
no outgoing calls
no test coverage detected