From 2edf2e5c2803f05a359df652078f26f1622e21af Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Fri, 24 Oct 2025 15:24:49 +0200 Subject: [PATCH] Updates type definition for stop_sequence Expands stop_sequence type from null to allow string values Improves type flexibility by making stop_sequence nullable with string support, enabling more precise type representation for Anthropic response handling --- types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.ts b/types.ts index e68556e..4393187 100644 --- a/types.ts +++ b/types.ts @@ -92,8 +92,8 @@ export interface AnthropicResponse { role: 'assistant'; /** Reason generation stopped */ stop_reason: string; - /** Stop sequence that triggered end (if any) */ - stop_sequence: null; + /** Stop sequence that triggered end (if any) - string | null */ + stop_sequence: string | null; /** Response type */ type: 'message'; /** Token usage statistics */