fix(openrouter): don't clip thinking output on claude models

Christian Rocha created

Change summary

providers/openrouter/language_model_hooks.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

providers/openrouter/language_model_hooks.go 🔗

@@ -295,7 +295,8 @@ func languageModelStreamExtra(chunk openaisdk.ChatCompletionChunk, yield func(fa
 		currentState.format = detail.Format
 		ctx[reasoningStartedCtx] = currentState
 		delta := detail.Summary
-		if strings.HasPrefix(detail.Format, "google-gemini") {
+		if strings.HasPrefix(detail.Format, "google-gemini") ||
+			strings.HasPrefix(detail.Format, "anthropic-claude") {
 			delta = detail.Text
 		}
 		return ctx, yield(fantasy.StreamPart{