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

Method get_model

crates/opencode-provider/src/vercel.rs:123–125  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

121 }
122
123 fn get_model(&self, id: &str) -> Option<&ModelInfo> {
124 self.models.iter().find(|m| m.id == id)
125 }
126
127 async fn chat(&self, request: ChatRequest) -> Result<ChatResponse, ProviderError> {
128 let url = self.config.base_url.as_deref().unwrap_or(VERCEL_API_URL);

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected