- openai_compat: 扫描所有 assistant 消息剥离 orphan tool_calls(原仅查末条) - queue 加 conversationId 字段,按会话精准 drain - regenerate/editMessage 只清本会话排队消息 - newConversation 保留旧会话排队消息 - AiError 只清出错会话的队列项
24 lines
538 B
TOML
24 lines
538 B
TOML
[package]
|
|
name = "df-ai"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
df-types = { path = "../df-types" }
|
|
df-ai-core = { path = "../df-ai-core" }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tokio = { workspace = true, features = ["sync", "time"] }
|
|
async-trait = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
tracing = { workspace = true }
|
|
|
|
# HTTP + 流式
|
|
reqwest = { version = "0.12", features = ["stream", "json", "rustls-tls"] }
|
|
bytes = "1"
|
|
futures = "0.3"
|
|
rand = "0.8"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|