feat(llm): 添加 tracing 日志与 ContentField 扩展

为 OpenAI 消息类型引入 ContentField 以支持 string 和 array 两种 content 格式,新增 reasoning_content 字段;添加 tracing 日志初始化函数及请求
/响应日志;修正多处文件末尾换行与 import 顺序。
This commit is contained in:
徐涛
2026-05-14 09:00:22 +08:00
parent e22c176643
commit 28635e28d5
12 changed files with 141 additions and 62 deletions
+4
View File
@@ -11,3 +11,7 @@ serde_json = "1"
thiserror = "2"
async-trait = "0.1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[dev-dependencies]
dotenvy = "0.15.7"