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

Method get_model

crates/opencode-provider/src/openai.rs:988–990  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

986 }
987
988 fn get_model(&self, id: &str) -> Option<&ModelInfo> {
989 self.models.iter().find(|m| m.id == id)
990 }
991
992 async fn chat(&self, request: ChatRequest) -> Result<ChatResponse, ProviderError> {
993 // Skip Responses API for OpenAI-compatible providers (non-OpenAI endpoints)

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected