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

Method get_model

crates/opencode-session/src/summary.rs:586–592  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

584 }
585
586 fn get_model(&self, id: &str) -> Option<&ModelInfo> {
587 if id == self.model.id {
588 Some(&self.model)
589 } else {
590 None
591 }
592 }
593
594 async fn chat(&self, _request: ChatRequest) -> Result<ChatResponse, ProviderError> {
595 Ok(ChatResponse {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected