-
Notifications
You must be signed in to change notification settings - Fork 1
Add a Cohere LLM adapter #7
Copy link
Copy link
Open
Labels
ai-providerLLM provider adapters (Anthropic, OpenAI, Ollama, etc.)LLM provider adapters (Anthropic, OpenAI, Ollama, etc.)enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Metadata
Metadata
Assignees
Labels
ai-providerLLM provider adapters (Anthropic, OpenAI, Ollama, etc.)LLM provider adapters (Anthropic, OpenAI, Ollama, etc.)enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Goal
Ship a Cohere adapter (command-r, command-r-plus) for users who prefer Cohere's RAG-friendly models.
Background
Same shape as issue #1 (Mistral). Cohere has its own Chat API that's JSON-ish but structurally different from OpenAI's chat completions — it uses `{"message": "...", "chat_history": [...]}` and the response shape is `{"text": "..."}` instead of a choices array.
Where to start
Acceptance criteria
Extra credit: implement `completeStream()` (Cohere streams with SSE-ish `event: text-generation` deltas) so the Ask assistant benefits from it.