|
|
@@ -147,7 +147,9 @@ public class TakaiAiServiceImpl implements ITakaiAiService {
|
|
|
String url = deepseekConfig.getBaseurl() + deepseekConfig.getChat();
|
|
|
TakaiAppInfo info = takaiAppInfoMapper.selectAppInfoByAppId(sseParams.getAppId());
|
|
|
JSONObject json = JSONObject.parseObject(info.getAppInfo());
|
|
|
- json.put("query", sseParams.getPrompt().get(0).getContent());
|
|
|
+ String query = sseParams.getPrompt().get(sseParams.getPrompt().size()-1).getContent();
|
|
|
+ log.info("deepseek聊天请求参数:"+ query);
|
|
|
+ json.put("query", query);
|
|
|
json.put("embeddingId", knowledge.getEmbeddingId());
|
|
|
|
|
|
RequestBody requestBody = FormBody.create(MediaType.parse("application/json; charset=utf-8"), json.toJSONString());
|