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

Method default

crates/opencode-provider/src/models.rs:195–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194impl Default for ModelsRegistry {
195 fn default() -> Self {
196 let cache_path = dirs::cache_dir()
197 .unwrap_or_else(|| std::env::temp_dir())
198 .join("opencode")
199 .join("models.json");
200 Self::new(cache_path)
201 }
202}
203
204pub fn default_model_limits() -> (u64, u64) {

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected