forked from phoenix/litellm-mirror
(v0) start pr
This commit is contained in:
parent
79efa64560
commit
b0983556fe
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue