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

Method get_model

crates/opencode-provider/src/deepinfra.rs:87–89  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

85 }
86
87 fn get_model(&self, id: &str) -> Option<&ModelInfo> {
88 self.models.iter().find(|m| m.id == id)
89 }
90
91 async fn chat(&self, request: ChatRequest) -> Result<ChatResponse, ProviderError> {
92 let mut body = serde_json::json!({

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected