You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
I noticed that the current pgai is only support chatgpt. But there are gemini, claude and llama and even more large language model existed. which provide same level service to GPT4 and cost efficient.
Is is possible to provide openrouter service as well?
Here is the document link, https://openrouter.ai/docs/quick-start
From the quick-start note, we can find it can use openai python library and compatible with openai chat.completion. The main changes will be
== connection
support base_url parameter , by set it to openrouter address
Add another api_keys
By support base_url and additonal api_keys, the pgai will support connection to openrouter even ollama model
==model name
use the model name from openrouter return api list
I think let's all.