mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
(v0) start pr
This commit is contained in:
parent
79efa64560
commit
b0983556fe
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ interface ChatUIProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function generateModelResponse(inputMessage: string, updateUI: (chunk: string) => void, selectedModel: string, accessToken: string) {
|
async function generateModelResponse(inputMessage: string, updateUI: (chunk: string) => void, selectedModel: string, accessToken: string) {
|
||||||
|
// base url should be the current base_url
|
||||||
const client = new openai.OpenAI({
|
const client = new openai.OpenAI({
|
||||||
apiKey: accessToken, // Replace with your OpenAI API key
|
apiKey: accessToken, // Replace with your OpenAI API key
|
||||||
baseURL: 'http://0.0.0.0:4000', // Replace with your OpenAI API base URL
|
baseURL: 'http://0.0.0.0:4000', // Replace with your OpenAI API base URL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue