dvc890 commited on
Commit
99d92c4
·
1 Parent(s): 014652c

Update api/common.go

Browse files
Files changed (1) hide show
  1. api/common.go +2 -2
api/common.go CHANGED
@@ -73,7 +73,7 @@ func GetAccessToken(accessToken string) string {
73
  //goland:noinspection GoUnhandledErrorResult
74
  func HandleConversationResponse(c *gin.Context, resp *http.Response) (bool, string) {
75
  Status := false
76
- conversationID := ""
77
  c.Writer.Header().Set("Content-Type", "text/event-stream; charset=utf-8")
78
 
79
  reader := bufio.NewReader(resp.Body)
@@ -126,7 +126,7 @@ func HandleConversationResponse(c *gin.Context, resp *http.Response) (bool, stri
126
  }
127
  }
128
  }
129
- return (Status, ConversationID)
130
  }
131
 
132
  //goland:noinspection GoUnhandledErrorResult,SpellCheckingInspection
 
73
  //goland:noinspection GoUnhandledErrorResult
74
  func HandleConversationResponse(c *gin.Context, resp *http.Response) (bool, string) {
75
  Status := false
76
+ ConversationID := ""
77
  c.Writer.Header().Set("Content-Type", "text/event-stream; charset=utf-8")
78
 
79
  reader := bufio.NewReader(resp.Body)
 
126
  }
127
  }
128
  }
129
+ return Status, ConversationID
130
  }
131
 
132
  //goland:noinspection GoUnhandledErrorResult,SpellCheckingInspection