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

Method set_model

crates/opencode-tui/src/context/app_context.rs:194–196  ·  view source on GitHub ↗
(&self, model: String, provider: String)

Source from the content-addressed store, hash-verified

192 }
193
194 pub fn set_model(&self, model: String, provider: String) {
195 self.set_model_selection(model, Some(provider));
196 }
197
198 pub fn set_model_selection(&self, model: String, provider: Option<String>) {
199 *self.current_model.write() = Some(model);

Callers

nothing calls this directly

Calls 1

set_model_selectionMethod · 0.80

Tested by

no test coverage detected