From 408130619bfccae868f1d89340272f37a622f925 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 27 May 2024 09:01:47 -0700 Subject: [PATCH] ui - show supported openai params --- .../src/components/model_hub.tsx | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/components/model_hub.tsx b/ui/litellm-dashboard/src/components/model_hub.tsx index 63431d13b3..2bec7d0138 100644 --- a/ui/litellm-dashboard/src/components/model_hub.tsx +++ b/ui/litellm-dashboard/src/components/model_hub.tsx @@ -32,6 +32,7 @@ interface ModelInfo { supports_vision: boolean; max_input_tokens?: number; max_output_tokens?: number; + supported_openai_params?: string[]; // Add other properties if needed @@ -193,6 +194,7 @@ const ModelHub: React.FC = ({ Supports Vision: {model?.supports_vision == true ? "Yes" : "No"} Max Input Tokens: {model?.max_input_tokens ? model?.max_input_tokens : "N/A"} Max Output Tokens: {model?.max_output_tokens ? model?.max_output_tokens : "N/A"} + @@ -218,7 +220,7 @@ const ModelHub: React.FC = ({ = ({
-

Model Name: {selectedModel.model_group}

+

Model Information & Usage: {selectedModel.model_group}

OpenAI Python SDK + Supported OpenAI Params LlamaIndex Langchain Py @@ -265,6 +268,22 @@ response = client.chat.completions.create( print(response) `} + + + + + { + selectedModel?.supported_openai_params?.map((param) => ( + +
+                              {param}
+                             
+ + + )) + } + +