Commit f87a2b9f authored by shiyu's avatar shiyu

ai对话接口修改

parent 7bc80269
......@@ -201,5 +201,5 @@ server:
avatar-url: https://cdn.wanwudezhi.com/static/web-static/image/b888cc6cb9c004dc342f573653e38ebd_690x690.png
chat:
model-url: https://xiaobai-fastapi.wanwudezhi.com/chat
model-url: https://xiaobai-fastapi.wanwudezhi.com/chat/chat
bing-search-url: https://xiaobai-fastapi.wanwudezhi.com/local_doc_qa/bing_search_chat
\ No newline at end of file
......@@ -198,5 +198,5 @@ server:
avatar-url: https://cdn.wanwudezhi.com/static/web-static/image/b888cc6cb9c004dc342f573653e38ebd_690x690.png
chat:
model-url: https://xiaobai-fastapi.wanwudezhi.com/chat
model-url: https://xiaobai-fastapi.wanwudezhi.com/chat/chat
bing-search-url: https://xiaobai-fastapi.wanwudezhi.com/local_doc_qa/bing_search_chat
\ No newline at end of file
......@@ -23,7 +23,7 @@ public class ChatApi {
public String chatWithModel(String question) {
OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(chatModelUrl);
Map<String, Object> map = new HashMap<>();
map.put("question", question);
map.put("query", question);
map.put("history", null);
okHttpUtil.addParams(map);
okHttpUtil.post(true);
......@@ -36,7 +36,7 @@ public class ChatApi {
public String chatWithBingSearch(String question) {
OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(bingSearchUrl);
Map<String, Object> map = new HashMap<>();
map.put("question", question);
map.put("query", question);
map.put("history", null);
okHttpUtil.addParams(map);
okHttpUtil.post(true);
......
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