Commit 88d7197b authored by linpeiqin's avatar linpeiqin

修改配置文件接口及listmodels接口

parent 392d5b4c
......@@ -174,8 +174,11 @@ public class ModelVersionController {
*/
@PostMapping("/listModels")
public ResponseResult<JSONArray> listModels() throws IOException {
JSONObject jsonObject = new JSONObject();
jsonObject.put("controller_address", pythonConfig.getControllerAddress());
jsonObject.put("placeholder", "string");
String url = this.pythonConfig.getChatAddress() + "llm_model/list_running_models";
String result = proxyPythonService.predictPost(url, "");
String result = proxyPythonService.predictPost(url, jsonObject.toJSONString());
JSONObject jo = JSON.parseObject(result);
Integer code = jo.getIntValue("code");
String msg = jo.getString("msg");
......
......@@ -78,9 +78,9 @@ python:
#python websocket 服务地址
pythonWebsocketUri: ws://127.0.0.1:7860/queue/join
#输出控制地址
controllerAddress: http://0.0.0.0:20001
controllerAddress: http://127.0.0.1:20001
#对话基础路径
chatAddress: http://127.0.0.1:8000/
chatAddress: http://127.0.0.1:7861/
knowledge:
#知识库通用接口地址
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment