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

Method new

crates/opencode-provider/src/openrouter.rs:27–34  ·  view source on GitHub ↗
(api_key: impl Into<String>)

Source from the content-addressed store, hash-verified

25
26impl OpenRouterProvider {
27 pub fn new(api_key: impl Into<String>) -> Self {
28 Self::with_config(OpenRouterConfig {
29 api_key: api_key.into(),
30 base_url: None,
31 site_url: None,
32 site_name: None,
33 })
34 }
35
36 pub fn with_config(config: OpenRouterConfig) -> Self {
37 let models = vec![

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected