Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ models
Method
models
crates/opencode-provider/src/xai.rs:81–83 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
79
"X.AI (Grok)"
80
}
81
fn models(&self) -> Vec<ModelInfo> {
82
self.models.clone()
83
}
84
fn get_model(&self, id: &str) -> Option<&ModelInfo> {
85
self.models.iter().find(|m| m.id == id)
86
}
Callers
11
list_models_interactive
Function · 0.45
list_providers_interactive
Function · 0.45
select_model
Function · 0.45
list_models
Function · 0.45
choose_github_model
Function · 0.45
register
Method · 0.45
register_arc
Method · 0.45
list_models
Method · 0.45
test_provider_metadata
Function · 0.45
test_all_providers_have_models
Function · 0.45
get_model_id
Method · 0.45
Calls
1
clone
Method · 0.45
Tested by
2
test_provider_metadata
Function · 0.36
test_all_providers_have_models
Function · 0.36