mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 00:03:00 +00:00
When 429/500 errors occur during tool execution, empty assistant messages with stopReason='error' get persisted. These break the tool_use -> tool_result chain for Claude/Gemini APIs. Added centralized filtering in transformMessages to skip assistant messages with empty content and no tool calls. Provider-level filters remain for defense-in-depth. |
||
|---|---|---|
| .. | ||
| providers | ||
| utils | ||
| cli.ts | ||
| constants.ts | ||
| index.ts | ||
| models.generated.ts | ||
| models.ts | ||
| stream.ts | ||
| types.ts | ||