Skip to content

Commit 94c0308

Browse files
committed
fix: correct loop iteration in AI conversation rounds
1 parent ce5aadf commit 94c0308

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/controller/ai_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (c *AIController) handleAIConversation(ctx *gin.Context, w http.ResponseWri
433433
maxRounds := 10
434434
messages := conversationCtx.GetOpenAIMessages()
435435

436-
for round := 0; round < maxRounds; round++ {
436+
for round := range maxRounds {
437437
log.Debugf("AI conversation round: %d", round+1)
438438

439439
aiReq := openai.ChatCompletionRequest{

0 commit comments

Comments
 (0)