Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions graphify/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,19 @@ def _get_tokenizer():
"temperature": 0,
"max_tokens": 16384,
},
"openrouter": {
# Routes through OpenRouter's OpenAI-compatible API proxy, which can connect to various backends including Kimi and Gemini.
# Default model is set to qwen/qwen3.6-flash as it's a cheap and well-performing model with low latency, and
# is widely accessible via OpenRouter, but users can override with any model supported by their OpenRouter account.
"base_url": "https://openrouter.ai/api/v1",
"default_model": "qwen/qwen3.6-flash",
"env_keys": ["OPENROUTER_API_KEY"],
"model_env_key": "GRAPHIFY_OPENROUTER_MODEL",
# Pricing set for default model, others may be different
"pricing": {"input": 0.1875, "output": 1.125},
"temperature": 0,
"max_tokens": 16384,
},
}


Expand Down