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

Method new

crates/opencode-provider/src/responses.rs:1034–1039  ·  view source on GitHub ↗
(model_id: impl Into<String>, config: OpenAIResponsesConfig)

Source from the content-addressed store, hash-verified

1032
1033impl OpenAIResponsesLanguageModel {
1034 pub fn new(model_id: impl Into<String>, config: OpenAIResponsesConfig) -> Self {
1035 Self {
1036 model_id: model_id.into(),
1037 config,
1038 }
1039 }
1040
1041 fn build_headers(&self, accept: &str) -> HashMap<String, String> {
1042 let mut headers = HashMap::from([

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected