增加工具使用功能

This commit is contained in:
2026-07-03 20:33:22 +08:00
parent 8c05311628
commit 04fefcf488
10 changed files with 662 additions and 71 deletions
+2
View File
@@ -136,7 +136,9 @@ def test_multi_turn_request_contains_full_history(
"completion_tokens": 2,
"total_tokens": 12,
}
assert second.json()["tools_use"] == []
datetime.fromisoformat(second.json()["message"]["created_at"])
assert "tool_calls" not in second.json()["message"]
data = json.loads((tmp_path / f"{session_id}.json").read_text())
assert [message["content"] for message in data["messages"]] == [
"first",