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

Function top_k_for_model

crates/opencode-provider/src/transform.rs:601–613  ·  view source on GitHub ↗
(model_id: &str)

Source from the content-addressed store, hash-verified

599}
600
601pub fn top_k_for_model(model_id: &str) -> Option<u32> {
602 let id = model_id.to_lowercase();
603 if id.contains("minimax-m2") {
604 if id.contains("m2.1") {
605 return Some(40);
606 }
607 return Some(20);
608 }
609 if id.contains("gemini") {
610 return Some(64);
611 }
612 None
613}
614
615// ---------------------------------------------------------------------------
616// transform_messages (top-level entry point matching TS `message()`)

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected