From b0983556fead1b651d83f1efe27af5c977e45c80 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 15 Feb 2024 22:08:41 -0800 Subject: [PATCH] (v0) start pr --- ui/litellm-dashboard/src/components/chat_ui.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/chat_ui.tsx b/ui/litellm-dashboard/src/components/chat_ui.tsx index fe1f4105e45..ed6744754a8 100644 --- a/ui/litellm-dashboard/src/components/chat_ui.tsx +++ b/ui/litellm-dashboard/src/components/chat_ui.tsx @@ -21,7 +21,8 @@ interface ChatUIProps { } async function generateModelResponse(inputMessage: string, updateUI: (chunk: string) => void, selectedModel: string, accessToken: string) { - const client = new openai.OpenAI({ + // base url should be the current base_url + const client = new openai.OpenAI({ apiKey: accessToken, // Replace with your OpenAI API key baseURL: 'http://0.0.0.0:4000', // Replace with your OpenAI API base URL dangerouslyAllowBrowser: true, // using a temporary litellm proxy key