Skip to content

Commit a1867dc

Browse files
committed
refactor: uses enum for json enum values
1 parent 849558c commit a1867dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Results/DTO/Candidate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static function getJsonSchema(): array
104104
'message' => Message::getJsonSchema(),
105105
'finishReason' => [
106106
'type' => 'string',
107-
'enum' => ['stop', 'length', 'content_filter', 'tool_calls', 'error'],
107+
'enum' => FinishReasonEnum::getValues(),
108108
'description' => 'The reason generation stopped.',
109109
],
110110
'tokenCount' => [

0 commit comments

Comments
 (0)