🎨 添加中间件 && 完善预设注入功能 && 新增流式传输

This commit is contained in:
2026-03-03 06:10:39 +08:00
parent e1c70fe218
commit 557c865948
16 changed files with 1010 additions and 12117 deletions

View File

@@ -35,8 +35,7 @@ func (a *AiProxyApi) ChatCompletions(c *gin.Context) {
// 处理流式响应
if req.Stream {
// TODO: 实现流式响应
response.FailWithMessage("流式响应暂未实现", c)
aiProxyService.ProcessChatCompletionStream(c, userId, &req)
return
}