From 0aa9050b12ab7b087cc1b7cd0b99e859d08ba1da Mon Sep 17 00:00:00 2001 From: oudecheng <13802883547@139.com> Date: Mon, 3 Aug 2026 14:26:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=203=20=E4=B8=AA?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=B5=8B=E8=AF=95=20-=20agent=5Fmd=5Ftemplat?= =?UTF-8?q?e=20=E5=86=99=E5=85=A5=E6=A8=A1=E6=9D=BF=E5=86=85=E5=AE=B9/Stre?= =?UTF-8?q?amingAccumulator=20BTreeMap=20=E4=BF=9D=E5=BA=8F/source=5Forder?= =?UTF-8?q?=20=E6=96=AD=E8=A8=80=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gateway/agent_md_template.md | 6 ++++++ src/providers/openai.rs | 3 ++- src/skills/mod.rs | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gateway/agent_md_template.md b/src/gateway/agent_md_template.md index e69de29..cae1413 100644 --- a/src/gateway/agent_md_template.md +++ b/src/gateway/agent_md_template.md @@ -0,0 +1,6 @@ + + diff --git a/src/providers/openai.rs b/src/providers/openai.rs index a066d8b..e411aa4 100644 --- a/src/providers/openai.rs +++ b/src/providers/openai.rs @@ -3,6 +3,7 @@ use futures_util::StreamExt; use reqwest::Client; use serde::Deserialize; use serde_json::{Value, json}; +use std::collections::BTreeMap; use std::collections::HashMap; use std::time::Duration; @@ -25,7 +26,7 @@ struct StreamingToolCall { struct StreamingAccumulator { content: String, reasoning_content: Option, - tool_calls: HashMap, + tool_calls: BTreeMap, response_id: String, } diff --git a/src/skills/mod.rs b/src/skills/mod.rs index ef1e57a..2d7ddaa 100644 --- a/src/skills/mod.rs +++ b/src/skills/mod.rs @@ -1232,6 +1232,7 @@ mod tests { SkillSource::Project, SkillSource::ProjectAgent, SkillSource::ProjectOpenclaw, + SkillSource::Custom("unknown".to_string()), ] ); }