diff --git a/astrbot/core/provider/sources/openrouter_source.py b/astrbot/core/provider/sources/openrouter_source.py index 2cb446cf3..e49d0c929 100644 --- a/astrbot/core/provider/sources/openrouter_source.py +++ b/astrbot/core/provider/sources/openrouter_source.py @@ -16,4 +16,7 @@ class ProviderOpenRouter(ProviderOpenAIOfficial): self.client._custom_headers["HTTP-Referer"] = ( # type: ignore "https://github.com/AstrBotDevs/AstrBot" ) - self.client._custom_headers["X-TITLE"] = "AstrBot" # type: ignore + self.client._custom_headers["X-OpenRouter-Title"] = "AstrBot" # type: ignore + self.client._custom_headers["X-OpenRouter-Categories"] = ( + "general-chat,personal-agent" # type: ignore + )