Spaces:
Runtime error
Runtime error
Update api/common.go
Browse files- 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 |
-
|
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
|
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
|