Skip to content

Commit

Permalink
fix: claude panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Mar 20, 2024
1 parent b736de7 commit dd71946
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions relay/channel/claude/relay-claude.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ func responseClaude2OpenAI(reqMode int, claudeResponse *ClaudeResponse) *dto.Ope
func claudeStreamHandler(requestMode int, modelName string, promptTokens int, c *gin.Context, resp *http.Response) (*dto.OpenAIErrorWithStatusCode, *dto.Usage) {
responseId := fmt.Sprintf("chatcmpl-%s", common.GetUUID())
var usage *dto.Usage
usage = &dto.Usage{}
responseText := ""
createdTime := common.GetTimestamp()
scanner := bufio.NewScanner(resp.Body)
Expand Down

0 comments on commit dd71946

Please sign in to comment.