Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
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
ai-tech
dify
Commits
a8ff2e95
Unverified
Commit
a8ff2e95
authored
Jan 03, 2024
by
zxhlyh
Committed by
GitHub
Jan 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: model parameter modal initial value (#1883)
parent
4d502ea4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
4 deletions
+1
-4
index.tsx
...p/components/datasets/documents/detail/metadata/index.tsx
+0
-1
index.tsx
...ents/header/account-dropdown/workplace-selector/index.tsx
+0
-1
index.tsx
...tting/model-provider-page/model-parameter-modal/index.tsx
+1
-1
base.ts
web/service/base.ts
+0
-1
No files found.
web/app/components/datasets/documents/detail/metadata/index.tsx
View file @
a8ff2e95
...
...
@@ -287,7 +287,6 @@ const Metadata: FC<IMetadataProps> = ({ docDetail, loading, onUpdate }) => {
}
const
onSave
=
async
()
=>
{
console
.
log
(
'metadataParams:'
,
metadataParams
)
setSaveLoading
(
true
)
const
[
e
]
=
await
asyncRunSafe
<
CommonResponse
>
(
modifyDocMetadata
({
datasetId
,
...
...
web/app/components/header/account-dropdown/workplace-selector/index.tsx
View file @
a8ff2e95
...
...
@@ -30,7 +30,6 @@ const WorkplaceSelector = () => {
const
currentWorkspace
=
workspaces
.
find
(
v
=>
v
.
current
)
const
handleSwitchWorkspace
=
async
(
tenant_id
:
string
)
=>
{
console
.
log
(
tenant_id
,
currentWorkspace
?.
id
)
try
{
if
(
currentWorkspace
?.
id
===
tenant_id
)
return
...
...
web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx
View file @
a8ff2e95
...
...
@@ -248,7 +248,7 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({
...(
isAdvancedMode
?
[
stopParameerRule
]
:
[]),
].
map
(
parameter
=>
(
<
ParameterItem
key=
{
parameter
.
name
}
key=
{
`${modelId}-${parameter.name}`
}
className=
'mb-4'
parameterRule=
{
parameter
}
value=
{
completionParams
[
parameter
.
name
]
}
...
...
web/service/base.ts
View file @
a8ff2e95
...
...
@@ -136,7 +136,6 @@ const handleStream = (response: Response, onData: IOnData, onCompleted?: IOnComp
onThought
?.(
bufferObj
as
ThoughtItem
)
}
else
if
(
bufferObj
.
event
===
'message_end'
)
{
console
.
log
(
bufferObj
)
onMessageEnd
?.(
bufferObj
as
MessageEnd
)
}
else
if
(
bufferObj
.
event
===
'message_replace'
)
{
...
...
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