File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
frontend/src/components/LLMSelection/SambaNovaOptions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function SambaNovaModelSelection({ settings, apiKey }) {
3838 useEffect ( ( ) => {
3939 async function findCustomModels ( ) {
4040 setLoading ( true ) ;
41- const { models } = await System . customModels ( "sambanova" ) ;
41+ const { models } = await System . customModels ( "sambanova" , apiKey ) ;
4242 if ( models ?. length > 0 ) {
4343 const modelsByOrganization = models . reduce ( ( acc , model ) => {
4444 acc [ model . organization ] = acc [ model . organization ] || [ ] ;
@@ -51,7 +51,7 @@ function SambaNovaModelSelection({ settings, apiKey }) {
5151 setLoading ( false ) ;
5252 }
5353 findCustomModels ( ) ;
54- } , [ ] ) ;
54+ } , [ apiKey ] ) ;
5555
5656 if ( loading || Object . keys ( groupedModels ) . length === 0 ) {
5757 return (
You can’t perform that action at this time.
0 commit comments