Skip to content

Commit fdf5cd0

Browse files
patch warning
1 parent 866e9ef commit fdf5cd0

File tree

1 file changed

+2
-2
lines changed
  • frontend/src/components/LLMSelection/SambaNovaOptions

1 file changed

+2
-2
lines changed

frontend/src/components/LLMSelection/SambaNovaOptions/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 (

0 commit comments

Comments
 (0)