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:
1 file changed
+2
-2
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user