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

Method get_provider

crates/opencode-provider/src/bootstrap.rs:1528–1530  ·  view source on GitHub ↗

Get a provider by ID.

(&self, provider_id: &str)

Source from the content-addressed store, hash-verified

1526
1527 /// Get a provider by ID.
1528 pub fn get_provider(&self, provider_id: &str) -> Option<&ProviderState> {
1529 self.providers.get(provider_id)
1530 }
1531
1532 /// Get a model by provider ID and model ID, with fuzzy matching on failure.
1533 pub fn get_model(

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected