MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / with_config

Method with_config

crates/opencode-provider/src/openai.rs:299–301  ·  view source on GitHub ↗
(config: OpenAIConfig)

Source from the content-addressed store, hash-verified

297 }
298
299 pub fn with_config(config: OpenAIConfig) -> Self {
300 Self::from_config(config, false)
301 }
302
303 pub fn openai_compatible(base_url: impl Into<String>, api_key: impl Into<String>) -> Self {
304 Self::from_config(

Callers

nothing calls this directly

Calls 1

from_configFunction · 0.85

Tested by

no test coverage detected