Add OpenRouterFree API key to environment and adjust max_tokens

This commit is contained in:
hlohaus
2025-09-22 22:32:49 +02:00
parent 391e1f463e
commit 74fcb27cbc
2 changed files with 3 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ DEEPINFRA_API_KEY=
OPENAI_API_KEY=
GROQ_API_KEY=
OPENROUTER_API_KEY=
OPENROUTERFREE_API_KEY=
OLLAMA_API_KEY=
NVIDIA_API_KEY=
PUTER_API_KEY=

View File

@@ -10,12 +10,11 @@ class OpenRouter(OpenaiTemplate):
working = True
needs_auth = True
default_model = "openrouter/auto"
active_by_default = True
class OpenRouterFree(OpenRouter):
parent = "OpenRouter"
label = "OpenRouter (free)"
max_tokens = 5012
max_tokens = 4096
active_by_default = True
@classmethod
def get_models(cls, api_key: str = None, **kwargs):