[GH-ISSUE #932] Problem of not being able to have multiple rounds of conversation using the openai interface #12257

Closed
opened 2026-04-19 19:08:47 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @muzhi1991 on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/932

When I use openai’s interface for multi-round conversations, I can’t initiate a request after a few rounds of conversations, and I get the following error:

chrome console log:

5.31442014.js:5 Uncaught (in promise) ReferenceError: OPENAI_API_BASE_URL is not defined
    at Y (5.31442014.js:5:2692)
    at 5.31442014.js:2:482
    at Array.map (<anonymous>)
    at ce (5.31442014.js:2:158)
    at Ee (5.31442014.js:1:7016)

why OPENAI_API_BASE_URL var not exists, The problem seems to occur with the following code:

6df2505bf0/src/routes/(app)/%2Bpage.svelte#L588

I don't know much about js, how do I fix it?

Originally created by @muzhi1991 on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/932 When I use openai’s interface for multi-round conversations, I can’t initiate a request after a few rounds of conversations, and I get the following error: chrome console log: ``` 5.31442014.js:5 Uncaught (in promise) ReferenceError: OPENAI_API_BASE_URL is not defined at Y (5.31442014.js:5:2692) at 5.31442014.js:2:482 at Array.map (<anonymous>) at ce (5.31442014.js:2:158) at Ee (5.31442014.js:1:7016) ``` why OPENAI_API_BASE_URL var not exists, The problem seems to occur with the following code: https://github.com/open-webui/open-webui/blob/6df2505bf0352a7580b33f17ce6844afe04fb7be/src/routes/(app)/%2Bpage.svelte#L588 I don't know much about js, how do I fix it?
Author
Owner

@justinh-rahb commented on GitHub (Feb 27, 2024):

How many turns are we talking about? Are you using OpenAI API through LiteLLM?

<!-- gh-comment-id:1965864976 --> @justinh-rahb commented on GitHub (Feb 27, 2024): How many turns are we talking about? Are you using OpenAI API through LiteLLM?
Author
Owner

@muzhi1991 commented on GitHub (Feb 27, 2024):

How many turns are we talking about? Are you using OpenAI API through LiteLLM?
about 3 turns(3 request 2 response,block in third turns)
no use LiteLLM, I only set api-key in Connecttion Settings, choose gpt-3.5-turbo

<!-- gh-comment-id:1966008188 --> @muzhi1991 commented on GitHub (Feb 27, 2024): > How many turns are we talking about? Are you using OpenAI API through LiteLLM? about 3 turns(3 request 2 response,block in third turns) no use LiteLLM, I only set api-key in Connecttion Settings, choose gpt-3.5-turbo
Author
Owner

@muzhi1991 commented on GitHub (Feb 27, 2024):

image I can't find this variable in the file search。

To add, I'm using the docker version, is it the js compilation that replaces the variables?

<!-- gh-comment-id:1966016585 --> @muzhi1991 commented on GitHub (Feb 27, 2024): <img width="1011" alt="image" src="https://github.com/open-webui/open-webui/assets/2101044/79fa422c-0fdc-4304-857c-c86a132759a5"> I can't find this variable in the file search。 To add, I'm using the docker version, is it the js compilation that replaces the variables?
Author
Owner

@tjbck commented on GitHub (Feb 27, 2024):

Unable to reproduce the issue, moving to discussion.

<!-- gh-comment-id:1967689186 --> @tjbck commented on GitHub (Feb 27, 2024): Unable to reproduce the issue, moving to discussion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#12257