MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_model_id

Method get_model_id

crates/opencode-agent/src/executor.rs:300–307  ·  view source on GitHub ↗
(&self, provider: &Arc<dyn Provider>)

Source from the content-addressed store, hash-verified

298 }
299
300 fn get_model_id(&self, provider: &Arc<dyn Provider>) -> String {
301 if let Some(ref model_ref) = self.agent.model {
302 model_ref.model_id.clone()
303 } else {
304 let models = provider.models();
305 models.first().map(|m| m.id.clone()).unwrap_or_default()
306 }
307 }
308
309 async fn process_stream(
310 &mut self,

Callers 4

executeMethod · 0.80
execute_subsessionMethod · 0.80
execute_streamingMethod · 0.80
current_model_stringMethod · 0.80

Calls 2

cloneMethod · 0.45
modelsMethod · 0.45

Tested by

no test coverage detected