Skip to content

Implement Cohere v2 chat adapter#85

Open
Photon101 wants to merge 1 commit into
profullstack:masterfrom
Photon101:photon101/ai-cohere-chat-adapter
Open

Implement Cohere v2 chat adapter#85
Photon101 wants to merge 1 commit into
profullstack:masterfrom
Photon101:photon101/ai-cohere-chat-adapter

Conversation

@Photon101
Copy link
Copy Markdown
Contributor

Summary

  • replace the Cohere AI stub with a real POST /v2/chat integration
  • update the default model from deprecated command-r-plus to current command-a-03-2025, with current Command model IDs listed
  • send system/user messages, max token and temperature options, plus provider-specific extra fields
  • normalize text content and token usage from Cohere v2 responses
  • expand tests from smoke-only to dry-run, request-shape, usage mapping, billed-unit fallback, and error coverage

Validation

  • corepack pnpm exec vitest run packages/ai/cohere/src/index.test.ts
  • corepack pnpm exec tsc -p packages/ai/cohere/tsconfig.json --noEmit
  • git diff --check

Reference

@ralyodio ralyodio self-assigned this May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants