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

Function slug_override

crates/opencode-provider/src/transform.rs:76–81  ·  view source on GitHub ↗
(key: &str)

Source from the content-addressed store, hash-verified

74const SLUG_OVERRIDES: &[(&str, &str)] = &[("amazon", "bedrock")];
75
76fn slug_override(key: &str) -> Option<&'static str> {
77 SLUG_OVERRIDES
78 .iter()
79 .find(|(k, _)| *k == key)
80 .map(|(_, v)| *v)
81}
82
83// ---------------------------------------------------------------------------
84// apply_caching

Callers 1

provider_options_mapFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected