Inchoker d2266405cc
Add OpenRouter (#2826)
* Add OpenRouter

* fix cohere setting description

* fix: update to auto router

* fix: auto router

* add: config parameters

* fix: correct max tokens

---------

Co-authored-by: Jack Tri Le <Jack>
Co-authored-by: Hoang Ha <64120343+hahuyhoang411@users.noreply.github.com>
2024-05-06 17:36:52 +07:00

24 lines
852 B
JSON

[
{
"key": "chat-completions-endpoint",
"title": "Chat Completions Endpoint",
"description": "The endpoint to use for chat completions. See the [Cohere API documentation](https://docs.cohere.com/reference/chat) for more information.",
"controllerType": "input",
"controllerProps": {
"placeholder": "https://api.cohere.ai/v1/chat",
"value": "https://api.cohere.ai/v1/chat"
}
},
{
"key": "cohere-api-key",
"title": "API Key",
"description": "The Cohere API uses API keys for authentication. Visit your [API Keys](https://dashboard.cohere.com/api-keys) page to retrieve the API key you'll use in your requests.",
"controllerType": "input",
"controllerProps": {
"placeholder": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"value": "",
"type": "password"
}
}
]