From 3cc16994a835da7b8d8a193aa6635913ace25f30 Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 27 Sep 2024 09:15:51 -0700 Subject: [PATCH] gui: improve missing api key text --- .vscode/launch.json | 2 +- gui/src/components/modelSelection/ModelSelect.tsx | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f5c81180f..896793040 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,7 +12,7 @@ "cwd": "${workspaceFolder}/extensions/vscode", "args": [ // Pass a directory to manually test in - "${workspaceFolder}/gui", + "${workspaceFolder}/manual-testing-sandbox", "${workspaceFolder}/manual-testing-sandbox/test.js", "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode" ], diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 553e440b3..7e0e471c2 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -192,7 +192,14 @@ function ModelOption({
- {option.title} + + {option.title} + {showMissingApiKeyMsg && ( + + (Missing API key) + + )} +
@@ -201,12 +208,6 @@ function ModelOption({ )}
- - {showMissingApiKeyMsg && ( - - Missing API key - - )} );