* fix core * add cohere extension * add cohere response customizable * nitpicking * use transformResponse * Update extensions/inference-cohere-extension/src/index.ts Co-authored-by: Louis <louis@jan.ai> * use prettier * Update extensions/inference-cohere-extension/src/index.ts Co-authored-by: Louis <louis@jan.ai> * pass requestBody as object * transformPayload as a property * This is not correct. CHATBOT is an equivalent role to assistant. system message should be used with the preamble parameter and should not be included in the chat_history --------- Co-authored-by: Jack Tri Le <Jack> Co-authored-by: Louis <louis@jan.ai>
24 lines
859 B
JSON
24 lines
859 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://platform.openai.com/account/api-keys) page to retrieve the API key you'll use in your requests.",
|
|
"controllerType": "input",
|
|
"controllerProps": {
|
|
"placeholder": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
"value": "",
|
|
"type": "password"
|
|
}
|
|
}
|
|
]
|