From 5d889c5d10a6ab567708f7f7df3eadb67d66740c Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 26 Apr 2026 22:21:24 +0800 Subject: [PATCH] fix: revise reasoning_key attribute to OpenRouter --- astrbot/core/provider/sources/openrouter_source.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astrbot/core/provider/sources/openrouter_source.py b/astrbot/core/provider/sources/openrouter_source.py index e49d0c929a..a308ad309d 100644 --- a/astrbot/core/provider/sources/openrouter_source.py +++ b/astrbot/core/provider/sources/openrouter_source.py @@ -20,3 +20,4 @@ def __init__( self.client._custom_headers["X-OpenRouter-Categories"] = ( "general-chat,personal-agent" # type: ignore ) + self.reasoning_key = "reasoning"