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
This commit is contained in:
AlexKucera committed 2025-10-24 15:24:49 +02:00
1 parent d0666a4967
commit 2edf2e5c28
1 file changed
+2 -2
+2 -2
View File
@@ -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 */