-
);
diff --git a/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx b/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx
index e065aff4a..7cd5653e3 100644
--- a/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx
+++ b/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx
@@ -8,15 +8,18 @@ import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import paths from "@/utils/paths";
-// Some providers can only be associated with a single model.
-// In that case there is no selection to be made so we can just move on.
-const NO_MODEL_SELECTION = [
- "default",
- "huggingface",
- "generic-openai",
- "bedrock",
-];
-const DISABLED_PROVIDERS = ["azure", "native"];
+// Some providers do not support model selection via /models.
+// In that case we allow the user to enter the model name manually and hope they
+// type it correctly.
+const FREE_FORM_LLM_SELECTION = ["bedrock", "azure", "generic-openai"];
+
+// Some providers do not support model selection via /models
+// and only have a fixed single-model they can use.
+const NO_MODEL_SELECTION = ["default", "huggingface"];
+
+// Some providers we just fully disable for ease of use.
+const DISABLED_PROVIDERS = ["native"];
+
const LLM_DEFAULT = {
name: "System default",
value: "default",
@@ -65,8 +68,8 @@ export default function WorkspaceLLMSelection({
);
setFilteredLLMs(filtered);
}, [LLMS, searchQuery, selectedLLM]);
-
const selectedLLMObject = LLMS.find((llm) => llm.value === selectedLLM);
+
return (
@@ -155,30 +158,66 @@ export default function WorkspaceLLMSelection({
)}
- Multi-model support is not supported for this provider yet.
-
- This workspace will use{" "}
-
- the model set for the system.
-
-
-
- )}
- >
- ) : (
-
-
-
- )}
+
+
+ );
+}
+
+// TODO: Add this to agent selector as well as make generic component.
+function ModelSelector({ selectedLLM, workspace, setHasChanges }) {
+ if (NO_MODEL_SELECTION.includes(selectedLLM)) {
+ if (selectedLLM !== "default") {
+ return (
+
+
+ Multi-model support is not supported for this provider yet.
+
+ This workspace will use{" "}
+
+ the model set for the system.
+
+
+ setHasChanges(true)}
+ className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
+ placeholder="Enter model name exactly as referenced in the API (e.g., gpt-3.5-turbo)"
+ />