fix: 规范claude返回格式
This commit is contained in:
1 parent
362c55d6cc
commit
483e1c46d2
11 files changed
+40
-21
No files matched your search
@@ -117,7 +117,7 @@ func cohereStreamHandler(c *gin.Context, resp *http.Response, modelName string,
|
||||
{
|
||||
Delta: dto.ChatCompletionsStreamResponseChoiceDelta{
|
||||
Role: "assistant",
|
||||
Content: cohereResp.Text,
|
||||
Content: &cohereResp.Text,
|
||||
},
|
||||
Index: 0,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user