Roo-Code/packages
Daniel ff1f4f0398
fix: use anthropic protocol for token counting when using anthropic models via Vercel AI Gateway (#7433)
- Added condition in getApiProtocol to return 'anthropic' for vercel-ai-gateway when modelId starts with 'anthropic/'
- Added tests for Vercel AI Gateway provider protocol detection

This ensures proper token counting for Anthropic models accessed through Vercel AI Gateway, as Anthropic and OpenAI count tokens differently (Anthropic excludes cache tokens from input count, OpenAI includes them).
2025-08-26 20:22:37 -04:00
..
build Sharing improvements (#5082) 2025-06-24 16:36:32 -04:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Roo Code Cloud (#4069) 2025-05-28 20:43:30 -07:00
evals Bring back "Use @roo-code/cloud from npm" (#6795) 2025-08-06 20:51:41 -10:00
ipc Add an API for resuming tasks by ID (#7122) 2025-08-15 12:03:58 -04:00
telemetry Git repo cloud telemetry (#5119) 2025-06-25 17:01:32 -07:00
types fix: use anthropic protocol for token counting when using anthropic models via Vercel AI Gateway (#7433) 2025-08-26 20:22:37 -04:00