MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / openrouter

Method openrouter

core/src/llm/providers.rs:337–345  ·  view source on GitHub ↗

Create `OpenRouter` configuration

(api_key: impl Into<String>, model: impl Into<String>)

Source from the content-addressed store, hash-verified

335
336 /// Create `OpenRouter` configuration
337 pub fn openrouter(api_key: impl Into<String>, model: impl Into<String>) -> Self {
338 Self::OpenRouter {
339 api_key: api_key.into(),
340 model: model.into(),
341 base_url: None,
342 site_url: None,
343 site_name: None,
344 }
345 }
346
347 /// Create `OpenRouter` configuration with site information
348 pub fn openrouter_with_site(

Calls

no outgoing calls