Merge branch 'Calcium-Ion:main' into main

This commit is contained in:
Yan Tau
2024-09-11 19:29:50 +08:00
committed by GitHub
8 changed files with 20 additions and 10 deletions

View File

@@ -395,6 +395,7 @@ func ResponseClaude2OpenAI(reqMode int, claudeResponse *ClaudeResponse) *dto.Ope
if len(tools) > 0 {
choice.Message.ToolCalls = tools
}
fullTextResponse.Model = claudeResponse.Model
choices = append(choices, choice)
fullTextResponse.Choices = choices
return &fullTextResponse