refactor: 更新请求转换逻辑,优化工具调用解析

This commit is contained in:
somnifex
2025-09-15 23:15:46 +08:00
parent fc38c480a1
commit 7d6ba52d85
4 changed files with 16 additions and 15 deletions

View File

@@ -87,7 +87,6 @@ func ollamaStreamHandler(c *gin.Context, info *relaycommon.RelayInfo, resp *http
// delta content
var content string
if chunk.Message != nil { content = chunk.Message.Content } else { content = chunk.Response }
if content != "" { aggregatedText.WriteString(content) }
delta := dto.ChatCompletionsStreamResponse{
Id: responseId,
Object: "chat.completion.chunk",