Repository navigation
Commit 64b7f9b
committed
fix: add final empty-content guard in message() pipeline
Adds a provider-agnostic safety net at the end of the message()
function that filters out messages with empty string content or
empty array content before they reach any provider API.
Previously only Anthropic and Bedrock had local guards; providers
like DeepSeek would receive messages with empty content and fail
with "messages.N: all messages must have non-empty content".
Fixes anomalyco#232601 parent bd149f0 commit 64b7f9b
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
476 | 499 | | |
477 | 500 | | |
478 | 501 | | |
| |||
0 commit comments