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

Method get_model

crates/opencode-provider/src/anthropic.rs:162–164  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

160 }
161
162 fn get_model(&self, id: &str) -> Option<&ModelInfo> {
163 self.models.iter().find(|m| m.id == id)
164 }
165
166 async fn chat(&self, request: ChatRequest) -> Result<ChatResponse, ProviderError> {
167 let anthropic_request = self.convert_request(request);

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected