From 5e959cc1f577bb662596d53d7a5437f6d3d32c0d Mon Sep 17 00:00:00 2001 From: NA-Wen Date: Thu, 8 Jan 2026 21:30:06 +0800 Subject: [PATCH] [fix] support chat interface --- yaml_instance/ChatDev_v1.yaml | 18 +++++++++--------- yaml_instance/data_visualization_basic.yaml | 10 +++++----- yaml_instance/net_example.yaml | 8 ++++---- yaml_instance/teach_video.yaml | 20 ++++++++++---------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/yaml_instance/ChatDev_v1.yaml b/yaml_instance/ChatDev_v1.yaml index 87dd9f43..bbc20491 100755 --- a/yaml_instance/ChatDev_v1.yaml +++ b/yaml_instance/ChatDev_v1.yaml @@ -38,7 +38,7 @@ graph: - id: Programmer Code Review type: agent config: - name: qwen-plus + name: gpt-4o role: |- ${COMMON_PROMPT} You are Programmer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer. @@ -71,7 +71,7 @@ graph: - id: Programmer Test Modification type: agent config: - name: qwen-plus + name: gpt-4o role: |- ${COMMON_PROMPT} You are Programmer. we are both working at ChatDev. We share a common interest in collaborating to successfully complete a task assigned by a new customer. @@ -104,7 +104,7 @@ graph: - id: Chief Executive Officer type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: |- ${COMMON_PROMPT} @@ -166,7 +166,7 @@ graph: - id: Programmer Code Complete type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: |- ${COMMON_PROMPT} @@ -214,7 +214,7 @@ graph: - id: Programmer Coding type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: |- ${COMMON_PROMPT} @@ -265,7 +265,7 @@ graph: - id: Chief Product Officer type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: |- ${COMMON_PROMPT} @@ -323,7 +323,7 @@ graph: - id: Programmer Test Error Summary type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: |- ${COMMON_PROMPT} @@ -360,7 +360,7 @@ graph: - id: Code Reviewer type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: |- ${COMMON_PROMPT} @@ -458,7 +458,7 @@ graph: - id: Software Test Engineer type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: |- ${COMMON_PROMPT} diff --git a/yaml_instance/data_visualization_basic.yaml b/yaml_instance/data_visualization_basic.yaml index 0cf413fd..545f8951 100644 --- a/yaml_instance/data_visualization_basic.yaml +++ b/yaml_instance/data_visualization_basic.yaml @@ -11,7 +11,7 @@ graph: context_window: -1 config: provider: openai - name: qwen-plus + name: gpt-4o base_url: ${BASE_URL} api_key: ${API_KEY} role: |- @@ -42,7 +42,7 @@ graph: context_window: -1 config: provider: openai - name: qwen-plus + name: gpt-4o base_url: ${BASE_URL} api_key: ${API_KEY} role: |- @@ -75,7 +75,7 @@ graph: context_window: -1 config: provider: openai - name: qwen-plus + name: gpt-4o base_url: ${BASE_URL} api_key: ${API_KEY} role: |- @@ -112,7 +112,7 @@ graph: context_window: 5 config: provider: openai - name: qwen-plus + name: gpt-4o base_url: ${BASE_URL} api_key: ${API_KEY} role: |- @@ -148,7 +148,7 @@ graph: context_window: 5 config: provider: openai - name: qwen-plus + name: gpt-4o base_url: ${BASE_URL} api_key: ${API_KEY} role: |- diff --git a/yaml_instance/net_example.yaml b/yaml_instance/net_example.yaml index d4e33d57..e0bc25dc 100755 --- a/yaml_instance/net_example.yaml +++ b/yaml_instance/net_example.yaml @@ -19,7 +19,7 @@ graph: base_url: ${BASE_URL} api_key: ${API_KEY} input_mode: messages - name: qwen-plus + name: gpt-4o role: | 你是一位作家,擅长根据用户输入的一个词句生成一整篇文章。 用户会输入一个词语或一个短句,你需要据此生成一篇不少于 2000 字的文章,要求含有多个段落。 @@ -33,7 +33,7 @@ graph: base_url: ${BASE_URL} api_key: ${API_KEY} input_mode: messages - name: qwen-plus + name: gpt-4o role: | 你是一位编辑,请你根据输入的文章与诗词,进行结合,文章最后应当附上诗词。 params: @@ -48,7 +48,7 @@ graph: - id: Editor 2 type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: | 你是一位编辑,擅长对文章进行整合和润色。 @@ -67,7 +67,7 @@ graph: - id: Poet type: agent config: - name: qwen-plus + name: gpt-4o provider: openai role: | 你是一位诗人,擅长根据用户输入的一个词句生成一首古体诗。 diff --git a/yaml_instance/teach_video.yaml b/yaml_instance/teach_video.yaml index 7dc02e6a..eda4c688 100755 --- a/yaml_instance/teach_video.yaml +++ b/yaml_instance/teach_video.yaml @@ -16,8 +16,8 @@ graph: - id: Video Concat type: agent config: - name: qwen-plus - provider: open ai + name: gemini-3-flash + provider: gemini role: 请先调用 describe_available_files,检查当前目录中的.mp4文件的路径;不同mp4文件的名称代表了他们的内容,请你根据他们的名称排序,并调用concat_videos工具对其进行拼接。注意,concat_videos工具需要的参数是排好序的绝对路径构成的列表 base_url: ${BASE_URL} api_key: ${API_KEY} @@ -38,8 +38,8 @@ graph: - id: Content Composer type: agent config: - name: qwen-plus - provider: openai + name: gemini-3-flash + provider: gemini role: |- 你是一名严谨的课程内容助教,请对你收到的内容生成一份教学大纲。 @@ -59,8 +59,8 @@ graph: - id: Code Generator type: agent config: - name: qwen-plus - provider: openai + name: gemini-3-flash + provider: gemini role: |- 你是一名 **Manim 动画生成 Agent**,具备自动规划、代码生成与执行能力。 你将接收一段题目信息(Markdown 格式),以及该内容在整套课程中的上下文位置信息。 @@ -152,8 +152,8 @@ graph: - id: Concluder type: agent config: - name: qwen-plus - provider: openai + name: gemini-3-flash + provider: gemini role: |- 请先调用 describe_available_files,检查当前目录中的.py脚本文件的路径;之后直接使用render_manim工具进行渲染,此工具的参数只需要{script_path}(脚本路径(绝对路径));如果有多个py文件,则需要对每个py文件均运行render_manim工具进行渲染 如果你在render_manim中发现出现问题,请你将具体的报错输出,同时输出“ERROR” @@ -176,8 +176,8 @@ graph: - id: Paginator type: agent config: - name: qwen-plus - provider: openai + name: gemini-3-flash + provider: gemini role: |- 你是一位专业的文档格式处理专家,擅长为教学文档添加合适的分页标记。