Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ get_model
Method
get_model
crates/opencode-provider/src/openrouter.rs:171–173 ·
view source on GitHub ↗
(&self, id: &str)
Source
from the content-addressed store, hash-verified
169
}
170
171
fn get_model(&self, id: &str) -> Option<&ModelInfo> {
172
self.models.iter().find(|m| m.id == id)
173
}
174
175
async fn chat(&self, request: ChatRequest) -> Result<ChatResponse, ProviderError> {
176
let url = self
Callers
nothing calls this directly
Calls
1
find
Method · 0.80
Tested by
no test coverage detected