Refactor cliCancel calls to remove unused resp argument across handlers.

This commit is contained in:
Luis Pater
2025-09-03 21:13:22 +08:00
parent f60ef0b2e7
commit 70e916942e
4 changed files with 5 additions and 5 deletions

View File

@@ -292,7 +292,7 @@ func (h *GeminiCLIAPIHandler) handleInternalGenerateContent(c *gin.Context, rawJ
break
} else {
_, _ = c.Writer.Write(resp)
cliCancel(resp)
cliCancel()
break
}
}

View File

@@ -405,7 +405,7 @@ func (h *GeminiAPIHandler) handleGenerateContent(c *gin.Context, modelName strin
break
} else {
_, _ = c.Writer.Write(resp)
cliCancel(resp)
cliCancel()
break
}
}