File tree Expand file tree Collapse file tree
basic/app/src/features/Models/components
rag/app/src/features/Models/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ export function ModelSelector(props: {
55 id : string ;
66 name : string ;
77 selected : boolean ;
8+ disabled ?: boolean ;
89 } [ ] ,
910 onChange : ( model : string ) => void
1011 class ?: string ;
1112 id ?: string ;
1213} ) {
1314 return ( < >
1415 < select onChange = { ( e ) => props . onChange ( e . target . value ) } id = { props . id } class = { props . class } >
15- < For each = { props . models } >
16+ < For each = { props . models . filter ( ( it ) => ! it . disabled ) } >
1617 { ( item ) => (
1718 < option value = { item . id } selected = { item . selected } > { item . name } </ option >
1819 ) }
Original file line number Diff line number Diff line change @@ -31,13 +31,15 @@ export const models = [
3131 id : 'gpt-oss-20b' ,
3232 name : 'OpenAI gpt-oss-20b (Amazon Bedrock)' ,
3333 modelId : 'openai.gpt-oss-20b-1:0' ,
34+ disabled : true ,
3435 selected : false ,
3536 platform : 'aws' ,
3637 } ,
3738 {
3839 id : 'gpt-oss-120b' ,
3940 name : 'OpenAI gpt-oss-120b (Amazon Bedrock)' ,
4041 modelId : 'openai.gpt-oss-120b-1:0' ,
42+ disabled : true ,
4143 selected : false ,
4244 platform : 'aws' ,
4345 } ,
Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ export function ModelSelector(props: {
55 id : string ;
66 name : string ;
77 selected : boolean ;
8+ disabled ?: boolean ;
89 } [ ] ,
910 onChange : ( model : string ) => void
1011 class ?: string ;
1112 id ?: string ;
1213} ) {
1314 return ( < >
1415 < select onChange = { ( e ) => props . onChange ( e . target . value ) } id = { props . id } class = { props . class } >
15- < For each = { props . models } >
16+ < For each = { props . models . filter ( ( it ) => ! it . disabled ) } >
1617 { ( item ) => (
1718 < option value = { item . id } selected = { item . selected } > { item . name } </ option >
1819 ) }
You can’t perform that action at this time.
0 commit comments