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

Function provider_state

crates/opencode-provider/src/bootstrap.rs:2807–2817  ·  view source on GitHub ↗
(id: &str)

Source from the content-addressed store, hash-verified

2805 }
2806
2807 fn provider_state(id: &str) -> ProviderState {
2808 ProviderState {
2809 id: id.to_string(),
2810 name: id.to_string(),
2811 source: "env".to_string(),
2812 env: vec![],
2813 key: None,
2814 options: HashMap::new(),
2815 models: HashMap::new(),
2816 }
2817 }
2818
2819 #[test]
2820 fn creates_openai_provider_from_state_key() {

Calls 1

newFunction · 0.85