= ({ accessToken, token, userRole, userID, d
)}
-
-
- Select Model
-
-
-
Endpoint Type
@@ -1024,6 +984,12 @@ const ChatUI: React.FC = ({ accessToken, token, userRole, userID, d
endpointType={endpointType}
onEndpointChange={(value) => {
setEndpointType(value);
+ // Clear model selection when switching endpoint type
+ setSelectedModel(undefined);
+ setShowCustomModelInput(false);
+ try {
+ sessionStorage.removeItem("selectedModel");
+ } catch {}
}}
className="mb-4"
/>
@@ -1057,6 +1023,68 @@ const ChatUI: React.FC = ({ accessToken, token, userRole, userID, d
/>
+
+
+ Select Model
+
+
+
Tags
diff --git a/ui/litellm-dashboard/src/components/chat_ui/mode_endpoint_mapping.tsx b/ui/litellm-dashboard/src/components/chat_ui/mode_endpoint_mapping.tsx
index 2aad64fb619..479d3cb8940 100644
--- a/ui/litellm-dashboard/src/components/chat_ui/mode_endpoint_mapping.tsx
+++ b/ui/litellm-dashboard/src/components/chat_ui/mode_endpoint_mapping.tsx
@@ -10,6 +10,7 @@ export enum ModelMode {
RESPONSES = "responses",
IMAGE_EDITS = "image_edits",
ANTHROPIC_MESSAGES = "anthropic_messages",
+ EMBEDDING = "embedding",
// add additional modes as needed
}
@@ -37,6 +38,7 @@ export const litellmModeMapping: Record = {
[ModelMode.ANTHROPIC_MESSAGES]: EndpointType.ANTHROPIC_MESSAGES,
[ModelMode.AUDIO_SPEECH]: EndpointType.SPEECH,
[ModelMode.AUDIO_TRANSCRIPTION]: EndpointType.TRANSCRIPTION,
+ [ModelMode.EMBEDDING]: EndpointType.EMBEDDINGS,
};
export const getEndpointType = (mode: string): EndpointType => {