mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-29 09:37:37 +08:00
fix(proxy): 规范化 Anthropic system 消息 (#3775)
This commit is contained in:
@@ -446,20 +446,17 @@ mod tests {
|
||||
.expect("write session");
|
||||
std::fs::write(
|
||||
sessions_dir.join("sessions.json"),
|
||||
format!(
|
||||
r#"{{
|
||||
"agent:main:main": {{
|
||||
serde_json::to_string(&serde_json::json!({
|
||||
"agent:main:main": {
|
||||
"sessionId": "session-123",
|
||||
"sessionFile": "{}"
|
||||
}},
|
||||
"agent:main:other": {{
|
||||
"sessionFile": session_path.to_string_lossy(),
|
||||
},
|
||||
"agent:main:other": {
|
||||
"sessionId": "session-456",
|
||||
"sessionFile": "{}/session-456.jsonl"
|
||||
}}
|
||||
}}"#,
|
||||
session_path.display(),
|
||||
sessions_dir.display()
|
||||
),
|
||||
"sessionFile": sessions_dir.join("session-456.jsonl").to_string_lossy(),
|
||||
},
|
||||
}))
|
||||
.expect("serialize index"),
|
||||
)
|
||||
.expect("write index");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user