Inchoker 96abd533c4
feat: cohere remote API extension (#2785)
* 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>
2024-04-24 18:16:57 +07:00

27 lines
719 B
JSON

[
{
"sources": [
{
"url": "https://cohere.com"
}
],
"id": "command-r-plus",
"object": "model",
"name": "Command R+",
"version": "1.0",
"description": "Command R+ is an instruction-following conversational model that performs language tasks at a higher quality, more reliably, and with a longer context than previous models. It is best suited for complex RAG workflows and multi-step tool use.",
"format": "api",
"settings": {},
"parameters": {
"max_tokens": 128000,
"temperature": 0.7,
"stream": false
},
"metadata": {
"author": "Cohere",
"tags": ["General", "Big Context Length"]
},
"engine": "cohere"
}
]