Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pms-dispatch-assistant
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜耀祖
pms-dispatch-assistant
Commits
0bda912d
Commit
0bda912d
authored
Apr 21, 2025
by
赵灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改调用的模型
parent
2223a16f
Pipeline
#21045
passed with stages
in 3 minutes and 17 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
LangChainController.java
...chassistant/controller/langchain/LangChainController.java
+4
-4
ai-chat.html
src/main/resources/static/pages/langchain/ai-chat.html
+1
-1
ai-chat-vue.js
src/main/resources/static/pages/langchain/js/ai-chat-vue.js
+1
-1
No files found.
src/main/java/com/infoepoch/pms/dispatchassistant/controller/langchain/LangChainController.java
View file @
0bda912d
...
@@ -281,8 +281,8 @@ public class LangChainController {
...
@@ -281,8 +281,8 @@ public class LangChainController {
@GetMapping
(
"/sseIntelligent"
)
@GetMapping
(
"/sseIntelligent"
)
public
ResponseEntity
<
SseEmitter
>
sse
(
@RequestParam
String
chatMessage
,
@RequestParam
String
dialogId
)
{
public
ResponseEntity
<
SseEmitter
>
sse
(
@RequestParam
String
chatMessage
,
@RequestParam
String
dialogId
)
{
logger
.
info
(
"开始调用1"
);
logger
.
info
(
"开始调用1"
);
//
String urlAddr = "http://10.32.41.35:40517/scene_gateway/agent/6809d0895428476bb6789ad70c525c97";
String
urlAddr
=
"http://10.32.41.35:40517/scene_gateway/agent/6809d0895428476bb6789ad70c525c97"
;
String
urlAddr
=
"http://10.32.41.35:40517/scene_gateway/agent/83f77143b09c461993dd9a7db403eb94"
;
//
String urlAddr = "http://10.32.41.35:40517/scene_gateway/agent/83f77143b09c461993dd9a7db403eb94";
SseEmitter
emitter
=
new
SseEmitter
(
0L
);
SseEmitter
emitter
=
new
SseEmitter
(
0L
);
QuestionRequest
questionRequest
=
new
QuestionRequest
();
QuestionRequest
questionRequest
=
new
QuestionRequest
();
questionRequest
.
setKeyword
(
chatMessage
);
questionRequest
.
setKeyword
(
chatMessage
);
...
@@ -296,8 +296,8 @@ public class LangChainController {
...
@@ -296,8 +296,8 @@ public class LangChainController {
// 建立链接
// 建立链接
connection
=
(
HttpURLConnection
)
url
.
openConnection
();
connection
=
(
HttpURLConnection
)
url
.
openConnection
();
connection
.
setRequestMethod
(
"GET"
);
connection
.
setRequestMethod
(
"GET"
);
//
connection.setRequestProperty("AuthToken", "4009fe23e6b648539792330c14f5ed8e");
connection
.
setRequestProperty
(
"AuthToken"
,
"4009fe23e6b648539792330c14f5ed8e"
);
connection
.
setRequestProperty
(
"AuthToken"
,
"fc40db5b7abe47dabfe1899e61fde2d7"
);
//
connection.setRequestProperty("AuthToken", "fc40db5b7abe47dabfe1899e61fde2d7");
// 允许输入和输出
// 允许输入和输出
connection
.
setDoInput
(
true
);
connection
.
setDoInput
(
true
);
connection
.
setDoOutput
(
true
);
connection
.
setDoOutput
(
true
);
...
...
src/main/resources/static/pages/langchain/ai-chat.html
View file @
0bda912d
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<!-- 左侧历史对话列表 -->
<!-- 左侧历史对话列表 -->
<div
class=
"sidebar"
>
<div
class=
"sidebar"
>
<div
class=
"sidebar-header"
>
<div
class=
"sidebar-header"
>
<h1>
AI
智能助手
</h1>
<h1>
专家推荐
智能助手
</h1>
<!-- 添加主题切换按钮 -->
<!-- 添加主题切换按钮 -->
<div
id=
"theme-toggle"
class=
"theme-toggle"
title=
"切换主题"
@
click=
"toggleTheme"
>
<div
id=
"theme-toggle"
class=
"theme-toggle"
title=
"切换主题"
@
click=
"toggleTheme"
>
<svg
id=
"light-icon"
viewBox=
"0 0 24 24"
:style=
"{display: isDarkTheme ? 'block' : 'none'}"
>
<svg
id=
"light-icon"
viewBox=
"0 0 24 24"
:style=
"{display: isDarkTheme ? 'block' : 'none'}"
>
...
...
src/main/resources/static/pages/langchain/js/ai-chat-vue.js
View file @
0bda912d
...
@@ -74,7 +74,7 @@ require(['jquery', 'vue', 'utils', 'echarts', 'global'], function ($, Vue, utils
...
@@ -74,7 +74,7 @@ require(['jquery', 'vue', 'utils', 'echarts', 'global'], function ($, Vue, utils
// 消息列表
// 消息列表
messages
:
[
messages
:
[
{
role
:
'ai'
,
content
:
'您好!我是您的
AI
助手,有什么可以帮助您的吗?'
}
{
role
:
'ai'
,
content
:
'您好!我是您的
专家推荐
助手,有什么可以帮助您的吗?'
}
]
]
},
},
computed
:
{
computed
:
{
...
...
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