Skip to content

Your lightweight open-source personal agent.

Merge branch 'main' into feat-volcengine-tuning

gaoyiman8865b6848c99
diff --cc nanobot/config/schema.py
index 8100be1b0,55e109e4b..3fd16ad32
--- a/nanobot/config/schema.py
+++ b/nanobot/config/schema.py
@@@ -278,15 -282,9 +282,21 @@@ class ProvidersConfig(Base)
moonshot: ProviderConfig = Field(default_factory=ProviderConfig)
minimax: ProviderConfig = Field(default_factory=ProviderConfig)
aihubmix: ProviderConfig = Field(default_factory=ProviderConfig) # AiHubMix API gateway
- ollama: ProviderConfig = Field(default_factory=ProviderConfig) # Ollama local models
- siliconflow: ProviderConfig = Field(default_factory=ProviderConfig) # SiliconFlow (硅基流动)
- volcengine: ProviderConfig = Field(default_factory=ProviderConfig) # VolcEngine (火山引擎)
+ siliconflow: ProviderConfig = Field(
+ default_factory=ProviderConfig
+ ) # SiliconFlow (硅基流动) API gateway
+ volcengine: ProviderConfig = Field(
+ default_factory=ProviderConfig
- ) # VolcEngine (火山引擎) pay-per-use
- volcengine_coding_plan: ProviderConfig = Field(default_factory=ProviderConfig) # VolcEngine Coding Plan
- byteplus: ProviderConfig = Field(default_factory=ProviderConfig) # BytePlus (火山引擎海外版) pay-per-use
- byteplus_coding_plan: ProviderConfig = Field(default_factory=ProviderConfig) # BytePlus Coding Plan
++ ) # VolcEngine (火山引擎) API gateway
++ volcengine_coding_plan: ProviderConfig = Field(
++ default_factory=ProviderConfig
++ ) # VolcEngine Coding Plan (火山引擎 Coding Plan)
++ byteplus: ProviderConfig = Field(
++ default_factory=ProviderConfig
++ ) # BytePlus (VolcEngine international)
++ byteplus_coding_plan: ProviderConfig = Field(
++ default_factory=ProviderConfig
++ ) # BytePlus Coding Plan
openai_codex: ProviderConfig = Field(default_factory=ProviderConfig) # OpenAI Codex (OAuth)
github_copilot: ProviderConfig = Field(default_factory=ProviderConfig) # Github Copilot (OAuth)
diff --cc nanobot/providers/registry.py
index 1c80506cd,c4bcfe2d2..2c9c185c5
--- a/nanobot/providers/registry.py
+++ b/nanobot/providers/registry.py
@@@ -158,63 -162,7 +163,63 @@@ PROVIDERS: tuple[ProviderSpec, ...] =
strip_model_prefix=False,
model_overrides=(),
),
+
+ # VolcEngine Coding Plan (火山引擎 Coding Plan): same key as volcengine
+ ProviderSpec(
+ name="volcengine_coding_plan",
+ keywords=("volcengine-plan",),
+ env_key="OPENAI_API_KEY",
+ display_name="VolcEngine Coding Plan",
+ litellm_prefix="volcengine",
+ skip_prefixes=(),
+ env_extras=(),
+ is_gateway=True,
+ is_local=False,
+ detect_by_key_prefix="",
+ detect_by_base_keyword="",
+ default_api_base="https://ark.cn-beijing.volces.com/api/coding/v3",
+ strip_model_prefix=True,
+ model_overrides=(),
+ ),
+
+ # BytePlus: VolcEngine international, pay-per-use models
+ ProviderSpec(
+ name="byteplus",
+ keywords=("byteplus",),
+ env_key="OPENAI_API_KEY",
+ display_name="BytePlus",
+ litellm_prefix="volcengine",
+ skip_prefixes=(),
+ env_extras=(),
+ is_gateway=True,
+ is_local=False,
+ detect_by_key_prefix="",
+ detect_by_base_keyword="bytepluses",
+ default_api_base="https://ark.ap-southeast.bytepluses.com/api/v3",
+ strip_model_prefix=True,
+ model_overrides=(),
+ ),
+
+ # BytePlus Coding Plan: same key as byteplus
+ ProviderSpec(
+ name="byteplus_coding_plan",
+ keywords=("byteplus-plan",),
+ env_key="OPENAI_API_KEY",
+ display_name="BytePlus Coding Plan",
+ litellm_prefix="volcengine",
+ skip_prefixes=(),
+ env_extras=(),
+ is_gateway=True,
+ is_local=False,
+ detect_by_key_prefix="",
+ detect_by_base_keyword="",
+ default_api_base="https://ark.ap-southeast.bytepluses.com/api/coding/v3",
+ strip_model_prefix=True,
+ model_overrides=(),
+ ),
+
- # === Standard providers (matched by model-name keywords) ===============
+
+ # === Standard providers (matched by model-name keywords) ===============
# Anthropic: LiteLLM recognizes "claude-*" natively, no prefix needed.
ProviderSpec(
name="anthropic",