We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f1366b commit ef0ee71Copy full SHA for ef0ee71
1 file changed
anthropic/anthropic.go
@@ -635,7 +635,7 @@ func (o languageModel) handleError(err error) error {
635
636
func mapFinishReason(finishReason string) ai.FinishReason {
637
switch finishReason {
638
- case "end", "stop_sequence":
+ case "end_turn", "pause_turn", "stop_sequence":
639
return ai.FinishReasonStop
640
case "max_tokens":
641
return ai.FinishReasonLength
0 commit comments