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
e22814b2
Unverified
Commit
e22814b2
authored
Jun 14, 2023
by
zxhlyh
Committed by
GitHub
Jun 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix application model selector style (#360)
parent
a66ef721
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.tsx
web/app/components/app/configuration/config-model/index.tsx
+4
-4
No files found.
web/app/components/app/configuration/config-model/index.tsx
View file @
e22814b2
...
@@ -97,7 +97,7 @@ const ConifgModel: FC<IConifgModelProps> = ({
...
@@ -97,7 +97,7 @@ const ConifgModel: FC<IConifgModelProps> = ({
key
:
'max_tokens'
,
key
:
'max_tokens'
,
tip
:
t
(
'common.model.params.maxTokenTip'
),
tip
:
t
(
'common.model.params.maxTokenTip'
),
step
:
100
,
step
:
100
,
max
:
modelId
===
'gpt-4'
?
8000
:
4000
,
max
:
(
modelId
===
'gpt-4'
||
modelId
===
'gpt-3.5-turbo-16k'
)
?
8000
:
4000
,
},
},
]
]
...
@@ -215,11 +215,11 @@ const ConifgModel: FC<IConifgModelProps> = ({
...
@@ -215,11 +215,11 @@ const ConifgModel: FC<IConifgModelProps> = ({
{
!
selectModelDisabled
&&
<
ChevronDownIcon
className=
{
cn
(
isShowOption
&&
'rotate-180'
,
'w-[14px] h-[14px] text-gray-500'
)
}
/>
}
{
!
selectModelDisabled
&&
<
ChevronDownIcon
className=
{
cn
(
isShowOption
&&
'rotate-180'
,
'w-[14px] h-[14px] text-gray-500'
)
}
/>
}
</
div
>
</
div
>
{
isShowOption
&&
(
{
isShowOption
&&
(
<
div
className=
{
cn
(
isChatApp
?
'w-[159px]'
:
'w-[179px]'
,
'absolute right-0 bg-gray-50 rounded-lg shadow'
)
}
>
<
div
className=
{
cn
(
isChatApp
?
'
min-
w-[159px]'
:
'w-[179px]'
,
'absolute right-0 bg-gray-50 rounded-lg shadow'
)
}
>
{
availableModels
.
map
(
item
=>
(
{
availableModels
.
map
(
item
=>
(
<
div
key=
{
item
.
id
}
onClick=
{
handleSelectModel
(
item
.
id
)
}
className=
"flex items-center h-9 px-3 rounded-lg cursor-pointer hover:bg-gray-100"
>
<
div
key=
{
item
.
id
}
onClick=
{
handleSelectModel
(
item
.
id
)
}
className=
"flex items-center h-9 px-3 rounded-lg cursor-pointer hover:bg-gray-100"
>
<
ModelIcon
className=
'mr-2'
/>
<
ModelIcon
className=
'
shrink-0
mr-2'
/>
<
div
className=
"text-sm gray-900"
>
{
item
.
name
}
</
div
>
<
div
className=
"text-sm gray-900
whitespace-nowrap
"
>
{
item
.
name
}
</
div
>
</
div
>
</
div
>
))
}
))
}
</
div
>
</
div
>
...
...
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