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

Method new

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

Source from the content-addressed store, hash-verified

214
215impl 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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected