优化: anthropic 协议图片 URL 预拉转 base64 + 无 Vision 模型温和丢图

This commit is contained in:
lxy
2026-08-08 14:19:15 +08:00
parent c1f2fe16c8
commit 4ce6a859e7
4 changed files with 254 additions and 4 deletions
+1
View File
@@ -636,6 +636,7 @@ impl LlmProvider for OpenAICompatProvider {
#[cfg(test)]
mod tests {
use super::*;
use crate::openai_helpers::OpenAiFunctionResp;
/// 辅助:构造普通文本 delta chunk 的 SSE data
fn text_chunk(content: &str, finish_reason: Option<&str>) -> String {