| 1 | import { ModelProvider } from "../types.js"; |
| 2 | |
| 3 | export const Cohere: ModelProvider = { |
| 4 | models: [ |
| 5 | { |
| 6 | model: "command-r-plus", |
| 7 | displayName: "Command R+", |
| 8 | contextLength: 128000, |
| 9 | maxCompletionTokens: 4000, |
| 10 | // recommendedFor: ["chat"], |
| 11 | }, |
| 12 | { |
| 13 | model: "command-r", |
| 14 | displayName: "Command R", |
| 15 | contextLength: 128000, |
| 16 | maxCompletionTokens: 4000, |
| 17 | }, |
| 18 | { |
| 19 | model: "embed-english-v3.0", |
| 20 | displayName: "Embed English 3.0", |
| 21 | // recommendedFor: ["embed"], |
| 22 | contextLength: 512, |
| 23 | }, |
| 24 | { |
| 25 | model: "rerank-english-v3.0", |
| 26 | displayName: "Rerank English 3.0", |
| 27 | // recommendedFor: ["rerank"], |
| 28 | contextLength: 4000, |
| 29 | }, |
| 30 | ], |
| 31 | id: "cohere", |
| 32 | displayName: "Cohere", |
| 33 | }; |