This repository was archived by the owner on Jul 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/features/workspace/components Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
- name : Cache dependencies
15
15
id : cache
16
- uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
16
+ uses : actions/cache@v4.2.2
17
17
with :
18
18
path : ./node_modules
19
19
key : modules-${{ hashFiles('package-lock.json') }}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function groupModelsByProviderName(
37
37
id : providerName ,
38
38
textValue : providerName ,
39
39
items : items . map ( ( item ) => ( {
40
- id : `${ item . provider_id } : ${ item . name } ` ,
40
+ id : `${ item . provider_id } @ ${ item . name } ` ,
41
41
textValue : item . name ,
42
42
} ) ) ,
43
43
} ) )
@@ -116,8 +116,10 @@ export function WorkspaceModelsDropdown({
116
116
const selectedValue = v . values ( ) . next ( ) . value
117
117
if ( ! selectedValue && typeof selectedValue !== 'string' ) return
118
118
if ( typeof selectedValue === 'string' ) {
119
- const [ provider_id , modelName ] = selectedValue . split ( ':' )
120
- if ( ! provider_id || ! modelName ) return
119
+ const atIndex = selectedValue . indexOf ( '@' )
120
+ const provider_id = selectedValue . slice ( 0 , atIndex )
121
+ const modelName = selectedValue . slice ( atIndex + 1 )
122
+ if ( atIndex === - 1 && ( ! provider_id || ! modelName ) ) return
121
123
onChange ( {
122
124
model : modelName ,
123
125
provider_id,
You can’t perform that action at this time.
0 commit comments