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

Method get_model

crates/opencode-session/src/compaction.rs:1053–1059  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

1051 }
1052
1053 fn get_model(&self, id: &str) -> Option<&ModelInfo> {
1054 if id == self.model.id {
1055 Some(&self.model)
1056 } else {
1057 None
1058 }
1059 }
1060
1061 async fn chat(&self, _request: ChatRequest) -> Result<ChatResponse, ProviderError> {
1062 Err(ProviderError::InvalidRequest(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected