Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ai-chat-ui
Project
Project
Details
Activity
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
chenghong_tao
ai-chat-ui
Commits
c6b82368
Commit
c6b82368
authored
Apr 27, 2025
by
chenghong_tao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 深度思考
parent
af883d01
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
2 deletions
+15
-2
components.d.ts
components.d.ts
+1
-0
aiBubble.vue
src/components/chatSubassembly/aiBubble.vue
+1
-1
inputMessage.vue
src/components/chatSubassembly/inputMessage.vue
+6
-0
task.js
src/store/task.js
+7
-1
No files found.
components.d.ts
View file @
c6b82368
...
...
@@ -13,6 +13,7 @@ declare module 'vue' {
ElAside
:
typeof
import
(
'element-plus/es'
)[
'ElAside'
]
ElAvatar
:
typeof
import
(
'element-plus/es'
)[
'ElAvatar'
]
ElButton
:
typeof
import
(
'element-plus/es'
)[
'ElButton'
]
ElCheckbox
:
typeof
import
(
'element-plus/es'
)[
'ElCheckbox'
]
ElCollapse
:
typeof
import
(
'element-plus/es'
)[
'ElCollapse'
]
ElCollapseItem
:
typeof
import
(
'element-plus/es'
)[
'ElCollapseItem'
]
ElConfigProvider
:
typeof
import
(
'element-plus/es'
)[
'ElConfigProvider'
]
...
...
src/components/chatSubassembly/aiBubble.vue
View file @
c6b82368
...
...
@@ -130,7 +130,7 @@ async function startSSE(query) {
headers
:
chatMessageOptions
.
headers
,
method
:
chatMessageOptions
.
method
,
body
:
JSON
.
stringify
({
inputs
:
{},
inputs
:
{
think
:
taskStore
.
deepThink
?
'1'
:
'0'
},
query
,
response_mode
:
"streaming"
,
conversation_id
:
taskStore
.
conversation_id
,
...
...
src/components/chatSubassembly/inputMessage.vue
View file @
c6b82368
...
...
@@ -12,6 +12,7 @@
>
<template
#
action-list
>
<div
class=
"action-list-self-wrap"
>
<el-checkbox
v-model=
"deepThink"
label=
"深度思考"
style=
"margin-right: 20px;"
border
/>
<el-button
type=
"danger"
link
...
...
@@ -88,6 +89,11 @@ const senderRef = ref();
const
senderValue
=
ref
(
""
);
const
senderLoading
=
ref
(
false
);
const
inputRef
=
ref
(
null
);
const
deepThink
=
ref
(
false
);
watch
(()
=>
deepThink
.
value
,
(
newValue
)
=>
{
taskStore
.
setDeepThink
(
newValue
)
})
const
emit
=
defineEmits
([
"userQuery"
,
"getInputHeight"
]);
function
handleSubmit
()
{
...
...
src/store/task.js
View file @
c6b82368
...
...
@@ -7,7 +7,8 @@ export const useTaskStore = defineStore('task', {
conversation_id
:
''
,
// 当前会话id
message_id
:
''
,
// 当前消息id
workflow_run_id
:
''
,
// 当前工作流运行id
isLoading
:
false
isLoading
:
false
,
deepThink
:
false
,
}
},
actions
:
{
...
...
@@ -28,11 +29,16 @@ export const useTaskStore = defineStore('task', {
setIsLoading
(
isLoading
)
{
this
.
isLoading
=
isLoading
},
setDeepThink
(
think
)
{
this
.
deepThink
=
think
},
clear
()
{
this
.
taskId
=
''
this
.
conversation_id
=
''
this
.
message_id
=
''
this
.
workflow_run_id
=
''
this
.
isLoading
=
false
this
.
deepThink
=
false
}
},
persist
:
{
...
...
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