Skip to content

Config

infra.llm.providers.open_router.config

Summary

OpenRouter provider configuration loaded from the environment.


Read the OpenRouter API key and endpoint used by the OpenRouter pool adaptors.

Classes

OpenRouterConfig

OpenRouterConfig()

Hold OpenRouter provider credentials and endpoint.

Attributes:

Name Type Description
api_key str

OpenRouter API key from OPENROUTER_API_KEY or LLM_API_KEY.

endpoint str

OpenRouter API base URL.

Load OpenRouter configuration from environment variables.

Functions