Skip to content

Commit

Permalink
响应消息没有role的情况下自动加上
Browse files Browse the repository at this point in the history
  • Loading branch information
fruitbars committed Jul 13, 2024
1 parent a2edcce commit a336b5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/handler/openai_openai_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ func handleOpenAIOpenAIStreamRequest(c *gin.Context, client *openai.Client, ctx
return err
}

mylog.Logger.Debug("CheckOpenAIStreamRespone1",
zap.Any("response", response))

adapter.CheckOpenAIStreamRespone(&response)

response.Model = req.Model
respData, err := json.Marshal(&response)
if err != nil {
Expand Down

0 comments on commit a336b5e

Please sign in to comment.