Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
修复 issues #247 (#253)
Browse files Browse the repository at this point in the history
* imitate api

* bug fix: imitate api mod deletion

* bug fix: imitate api mod deletion v2

* simulate api return result optimization

* 修复 issues #247 ,imitate报错返回不是合法json的问题
  • Loading branch information
CoolProgramme authored Sep 12, 2023
1 parent 339c9d6 commit 619532e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions api/imitate/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ func CreateChatCompletions(c *gin.Context) {

response, done := sendConversationRequest(c, translatedRequest, token)
if done {
c.JSON(500, gin.H{
"error": "error sending request",
})
return
}

Expand Down Expand Up @@ -106,9 +103,6 @@ func CreateChatCompletions(c *gin.Context) {
response, done = sendConversationRequest(c, translatedRequest, token)

if done {
c.JSON(500, gin.H{
"error": "error sending request",
})
return
}

Expand Down

0 comments on commit 619532e

Please sign in to comment.