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

Method get_model

crates/opencode-provider/src/github_copilot.rs:472–474  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

470 }
471
472 fn get_model(&self, id: &str) -> Option<&ModelInfo> {
473 self.models.iter().find(|m| m.id == id)
474 }
475
476 async fn chat(&self, request: ChatRequest) -> Result<ChatResponse, ProviderError> {
477 if select_copilot_route(&request.model) == CopilotRoute::Responses {

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected