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

Method merge_config

crates/opencode-provider/src/provider.rs:352–356  ·  view source on GitHub ↗
(&mut self, provider_id: &str, options: HashMap<String, serde_json::Value>)

Source from the content-addressed store, hash-verified

350 }
351
352 pub fn merge_config(&mut self, provider_id: &str, options: HashMap<String, serde_json::Value>) {
353 if let Some(info) = self.provider_info.get_mut(provider_id) {
354 info.options.extend(options);
355 }
356 }
357
358 pub fn get_provider(&self, provider_id: &str) -> Result<Arc<dyn Provider>, ProviderError> {
359 self.providers

Callers 1

bootstrap_registryFunction · 0.80

Calls 1

get_mutMethod · 0.45

Tested by

no test coverage detected