ai-genie / chatgpt-vscode

Your best AI pair programmer in VS Code
https://marketplace.visualstudio.com/items?itemName=genieai.chatgpt-vscode
ISC License
1.17k stars 72 forks source link

add openrouter #147

Open seoeaa opened 8 months ago

seoeaa commented 8 months ago

Describe the feature

Add https://openrouter.ai/ there are many models I use all the time

CerebralXor commented 1 week ago

openrouter.ai can work with Genie by changing some settings in VSCode's settings.json:

"genieai.openai.apiBaseUrl": "https://openrouter.ai/api",
"genieai.openai.model": "openai/o1-mini",

Use the model identifier of whatever model you want to use for genieai.openai.model from their list at https://openrouter.ai/models. You can ignore the Value is not accepted. Valid values: ... warning for genieai.openai.model.

Obviously don't forget to update your API key.