|
@@ -318,6 +318,7 @@ public class TakaiAiServiceImpl implements ITakaiAiService {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("model", vo.getModel());
|
|
jsonObject.put("model", vo.getModel());
|
|
|
jsonObject.put("messages", params.getMessages());
|
|
jsonObject.put("messages", params.getMessages());
|
|
|
|
|
+ jsonObject.put("chat_id", params.getChat_id());
|
|
|
JSONObject result = getasyncCompletions(jsonObject);
|
|
JSONObject result = getasyncCompletions(jsonObject);
|
|
|
if (result != null && result.getInteger("code") == 200) {
|
|
if (result != null && result.getInteger("code") == 200) {
|
|
|
JSONArray array = result.getJSONArray("data");
|
|
JSONArray array = result.getJSONArray("data");
|