add Volcengine Coding Plan to quikly setup (#4141)

* add Volcengine Coding Plan to quikly setup

* modify model list
This commit is contained in:
pclin
2026-07-14 13:01:58 +08:00
committed by GitHub
parent 192ea5155e
commit fabadae416
2 changed files with 87 additions and 0 deletions
+44
View File
@@ -112,6 +112,50 @@ models:
# thinking:
# type: disabled
# Example: Volcengine Coding Plan (one key, multi-vendor gateway)
# The Coding Plan endpoint (/api/coding/v3) lets you access models from
# Doubao, GLM, DeepSeek, Kimi, and MiniMax with a single API key.
# Each model may differ in thinking/vision support - configure per-model.
#
# - name: glm-5.2-cp
# display_name: GLM-5.2 (Coding Plan)
# use: deerflow.models.patched_deepseek:PatchedChatDeepSeek
# model: glm-5.2
# api_base: https://ark.cn-beijing.volces.com/api/coding/v3
# api_key: $VOLCENGINE_API_KEY
# timeout: 600.0
# max_retries: 2
# supports_thinking: true
# supports_vision: false
# supports_reasoning_effort: true
# when_thinking_enabled:
# extra_body:
# thinking:
# type: enabled
# when_thinking_disabled:
# extra_body:
# thinking:
# type: disabled
#
# - name: deepseek-v4-pro-cp
# display_name: DeepSeek-V4-Pro (Coding Plan)
# use: deerflow.models.patched_deepseek:PatchedChatDeepSeek
# model: deepseek-v4-pro
# api_base: https://ark.cn-beijing.volces.com/api/coding/v3
# api_key: $VOLCENGINE_API_KEY
# timeout: 600.0
# max_retries: 2
# supports_thinking: true
# supports_vision: false
# supports_reasoning_effort: true
# when_thinking_enabled:
# extra_body:
# thinking:
# type: enabled
# when_thinking_disabled:
# extra_body:
# thinking:
# type: disabled
# Example: OpenAI model
# - name: gpt-4
# display_name: GPT-4
+43
View File
@@ -132,6 +132,49 @@ LLM_PROVIDERS: list[LLMProvider] = [
**OPENAI_COMPAT_THINKING_CONFIG,
},
),
LLMProvider(
name="volcengine_codingplan",
display_name="Volcengine Coding Plan",
description="One key, multi-vendor models (Doubao/GLM/DeepSeek/Kimi/MiniMax)",
use="deerflow.models.patched_deepseek:PatchedChatDeepSeek",
models=[
"doubao-seed-2.0-code",
"doubao-seed-2.0-pro",
"doubao-seed-2.0-lite",
"doubao-seed-code",
"minimax-m2.7",
"minimax-m3",
"glm-5.2",
"deepseek-v4-flash",
"deepseek-v4-pro",
"kimi-k2.6",
"kimi-k2.7-code",
],
default_model="glm-5.2",
env_var="VOLCENGINE_API_KEY",
package="langchain-deepseek",
extra_config={
"api_base": "https://ark.cn-beijing.volces.com/api/coding/v3",
"timeout": 600.0,
"max_retries": 2,
"supports_vision": True,
"supports_reasoning_effort": True,
**OPENAI_COMPAT_THINKING_CONFIG,
},
model_vision_overrides={
"doubao-seed-2.0-code": True,
"doubao-seed-2.0-pro": True,
"doubao-seed-2.0-lite": True,
"doubao-seed-code": True,
"minimax-m2.7": False,
"minimax-m3": True,
"glm-5.2": False,
"deepseek-v4-flash": False,
"deepseek-v4-pro": False,
"kimi-k2.6": False,
"kimi-k2.7-code": False,
},
),
LLMProvider(
name="openai",
display_name="OpenAI",