Skip to content

Your lightweight open-source personal agent.

fix: validate thinking_style against known values at config load time

axelray-dev0e19ea3062cc
diff --git a/nanobot/config/schema.py b/nanobot/config/schema.py
index 89214fa08..9ad601442 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):