Spaces:
Runtime error
Runtime error
Update api/common.go
Browse files- api/common.go +2 -2
api/common.go
CHANGED
@@ -102,8 +102,8 @@ func HandleConversationResponse(c *gin.Context, resp *http.Response) {
|
|
102 |
}
|
103 |
data := line[6:]
|
104 |
var result map[string]interface{}
|
105 |
-
|
106 |
-
if
|
107 |
continue
|
108 |
}
|
109 |
message := result["message"].(map[string]interface{})
|
|
|
102 |
}
|
103 |
data := line[6:]
|
104 |
var result map[string]interface{}
|
105 |
+
err2 := json.Unmarshal([]byte(data), &result)
|
106 |
+
if err2 != nil {
|
107 |
continue
|
108 |
}
|
109 |
message := result["message"].(map[string]interface{})
|