From 0e19ea3062cc08ffbaf181f9a29a52583b24df0f Mon Sep 17 00:00:00 2001 From: axelray-dev <110029405+axelray-dev@users.noreply.github.com> Date: Wed, 24 Jun 2026 06:58:43 +0800 Subject: [PATCH] fix: validate thinking_style against known values at config load time --- nanobot/config/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobot/config/schema.py b/nanobot/config/schema.py index 89214fa0..9ad60144 100644 --- a/nanobot/config/schema.py +++ b/nanobot/config/schema.py @@ -182,7 +182,7 @@ class ProviderConfig(Base): extra_headers: dict[str, str] | None = None # Custom headers (e.g. APP-Code for AiHubMix) extra_body: dict[str, Any] | None = None # Extra provider request fields; shape depends on provider/API surface extra_query: dict[str, str] | None = None # Extra query params (e.g. api-version for Azure-style gateways) - thinking_style: str = "" # Thinking injection style for custom providers: "thinking_type", "enable_thinking", "reasoning_split" + thinking_style: Literal["thinking_type", "enable_thinking", "reasoning_split"] | None = None # Thinking/reasoning style for custom providers class BedrockProviderConfig(ProviderConfig):