feat(llm): add openrouter backend support with configurable API and model options#1041
feat(llm): add openrouter backend support with configurable API and model options#1041the-cybersapien wants to merge 2 commits into
Conversation
|
Hello @safishamsi , I previously raised a PR #723 for this. We have several other backends supported now. Openrouter provides a flexible option for this use-case. |
|
Thanks for this! OpenRouter backend is a great addition. A few things to fix before we can merge:
Once those are addressed this is ready to go! |
|
Hey @safishamsi , I've made some fixes. Responses point by point:
|
|
Good idea — OpenRouter slots cleanly into the existing
Fix those three and this is a clean merge. |
This pull request adds support for OpenRouter as a new LLM backend in the
graphify/llm.pyconfiguration. The main change is the introduction of a configuration block for OpenRouter, allowing users to route requests through OpenRouter's OpenAI-compatible API proxy and select from a variety of models.New LLM backend support:
openrouterconfiguration to the LLM backends, setting up default parameters, environment variable keys, and documentation for using OpenRouter's API proxy with a default model ofqwen/qwen3.6-flash.…options