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

Method get_model

crates/opencode-provider/src/azure.rs:143–145  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

141 }
142
143 fn get_model(&self, id: &str) -> Option<&ModelInfo> {
144 self.models.iter().find(|m| m.id == id)
145 }
146
147 async fn chat(&self, request: ChatRequest) -> Result<ChatResponse, ProviderError> {
148 let url = self.build_url(&request.model, false);

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected