MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new_with_base_url

Method new_with_base_url

crates/opencode-provider/src/openai.rs:224–230  ·  view source on GitHub ↗
(api_key: impl Into<String>, base_url: impl Into<String>)

Source from the content-addressed store, hash-verified

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![

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected