Documentation
¶
Overview ¶
Package openrouter connects to the OpenRouter API.
Index ¶
Constants ¶
View Source
const ( // ProviderOptionCacheControl is the top-level cache_control object that // enables automatic prompt caching, e.g. {"type": "ephemeral", "ttl": "1h"}. ProviderOptionCacheControl = "cache_control" ProviderOptionSessionID = "session_id" // ProviderOptionRouting is OpenRouter's provider routing object. ProviderOptionRouting = "provider" )
Keys accepted in Request.ProviderOptions, sent as native request fields.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.