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
3a5c7c75
Unverified
Commit
3a5c7c75
authored
Aug 28, 2023
by
zxhlyh
Committed by
GitHub
Aug 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix/model selector (#1032)
parent
a7415ecf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
list.tsx
web/app/components/datasets/documents/list.tsx
+1
-1
index.tsx
...pp/components/header/account-setting/model-page/index.tsx
+1
-0
index.tsx
...eader/account-setting/model-page/model-selector/index.tsx
+1
-1
No files found.
web/app/components/datasets/documents/list.tsx
View file @
3a5c7c75
...
...
@@ -89,7 +89,7 @@ export const StatusItem: FC<{
<
Tooltip
selector=
'dataset-document-detail-item-status'
htmlContent=
{
<
div
className=
'max-w-[260px]'
>
{
errorMessage
}
</
div
>
<
div
className=
'max-w-[260px]
break-all
'
>
{
errorMessage
}
</
div
>
}
>
<
HelpCircle
className=
'ml-1 w-[14px] h-[14px] text-gray-700'
/>
...
...
web/app/components/header/account-setting/model-page/index.tsx
View file @
3a5c7c75
...
...
@@ -122,6 +122,7 @@ const ModelPage = () => {
const
handleUpdateProvidersAndModelList
=
()
=>
{
updateModelList
(
ModelType
.
textGeneration
)
updateModelList
(
ModelType
.
embeddings
)
updateModelList
(
ModelType
.
speech2text
)
mutateProviders
()
}
const
handleSave
=
async
(
originValue
?:
FormValue
)
=>
{
...
...
web/app/components/header/account-setting/model-page/model-selector/index.tsx
View file @
3a5c7c75
...
...
@@ -78,7 +78,7 @@ const ModelSelector: FC<Props> = ({
})
:
modelList
const
hasRemoved
=
value
&&
!
modelList
.
find
(({
model_name
})
=>
model_name
===
value
.
model
Name
)
const
hasRemoved
=
value
&&
!
modelList
.
find
(({
model_name
,
model_provider
})
=>
model_name
===
value
.
modelName
&&
model_provider
.
provider_name
===
value
.
provider
Name
)
const
modelOptions
:
ModelOption
[]
=
(()
=>
{
const
providers
=
_
.
uniq
(
filteredModelList
.
map
(
item
=>
item
.
model_provider
.
provider_name
))
...
...
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