Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
f87a2b9f
Commit
f87a2b9f
authored
Oct 27, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai对话接口修改
parent
7bc80269
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ch-core/src/main/resources/application-dev.yml
ch-core/src/main/resources/application-dev.yml
+1
-1
ch-core/src/main/resources/application-prod.yml
ch-core/src/main/resources/application-prod.yml
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/ChatApi.java
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/ChatApi.java
+2
-2
No files found.
ch-core/src/main/resources/application-dev.yml
View file @
f87a2b9f
...
...
@@ -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
ch-core/src/main/resources/application-prod.yml
View file @
f87a2b9f
...
...
@@ -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
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/ChatApi.java
View file @
f87a2b9f
...
...
@@ -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
(
"que
stion
"
,
question
);
map
.
put
(
"que
ry
"
,
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
(
"que
stion
"
,
question
);
map
.
put
(
"que
ry
"
,
question
);
map
.
put
(
"history"
,
null
);
okHttpUtil
.
addParams
(
map
);
okHttpUtil
.
post
(
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment