mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 18:02:11 +00:00
Handle FinishReason.NO_IMAGE and fix optional chaining
- Add NO_IMAGE to error finish reasons in Google provider - Fix non-null assertion after optional chaining in Anthropic provider - Migrate biome config to 2.3.5 - Ignore Tailwind CSS file from biome checks - Bump all packages to version 0.6.0
This commit is contained in:
parent
f147109da7
commit
00d8286523
14 changed files with 1451 additions and 2843 deletions
|
|
@ -466,6 +466,7 @@ function mapStopReason(reason: FinishReason): StopReason {
|
|||
case FinishReason.LANGUAGE:
|
||||
case FinishReason.MALFORMED_FUNCTION_CALL:
|
||||
case FinishReason.UNEXPECTED_TOOL_CALL:
|
||||
case FinishReason.NO_IMAGE:
|
||||
return "error";
|
||||
default: {
|
||||
const _exhaustive: never = reason;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue