refact: openai,claude

This commit is contained in:
Sakurasan
2024-04-16 23:47:06 +08:00
parent f336eba19a
commit b61e85b7fc
5 changed files with 650 additions and 3 deletions

View File

@@ -499,6 +499,9 @@ func HandleProy(c *gin.Context) {
return
}
ChatHandler(c)
return
if err := c.BindJSON(&chatreq); err != nil {
c.AbortWithError(http.StatusBadRequest, err)
return