Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Configuration to Enable/Disable LLM Streaming #1807

Open
grundc opened this issue Jul 3, 2024 · 3 comments
Open

[BUG]: Configuration to Enable/Disable LLM Streaming #1807

grundc opened this issue Jul 3, 2024 · 3 comments
Assignees
Labels
bug Something isn't working core-team-only investigating Core team or maintainer will or is currently looking into this issue

Comments

@grundc
Copy link

grundc commented Jul 3, 2024

What would you like to see?

I have an issue using AnythingLLM with our companies AzureOpenAI endpoint. When trying to start a chat the docker container is crashing and shutting down. In the log I can see the following error.

undefined
2024-07-03 16:20:18 /app/server/endpoints/chat.js:117
2024-07-03 16:20:18 error: e.message,
2024-07-03 16:20:18 ^
2024-07-03 16:20:18
2024-07-03 16:20:18 TypeError: Cannot read properties of undefined (reading 'message')
2024-07-03 16:20:18 at /app/server/endpoints/chat.js:117:20
2024-07-03 16:20:18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Not sure what exactly is the reason for it. But I got to notice that my company disabled "streaming" on the endpoint and something is telling me, that it migh be related to that.

I am wondering if there is a possibility to prevent anythingLLM from using the streaming approach.

@grundc grundc added enhancement New feature or request feature request labels Jul 3, 2024
@timothycarambat
Copy link
Member

I didnt even know you could disable streaming for Azure endpoints. if that is the case - this is certainly the reason you are getting an error here

@timothycarambat timothycarambat added bug Something isn't working core-team-only investigating Core team or maintainer will or is currently looking into this issue and removed enhancement New feature or request feature request labels Jul 3, 2024
@timothycarambat timothycarambat self-assigned this Jul 3, 2024
@grundc
Copy link
Author

grundc commented Jul 4, 2024

I didnt even know you could disable streaming for Azure endpoints. if that is the case - this is certainly the reason you are getting an error here

May be to clarify this. My company decided to put a proxy inbetween. So I am not consuming the Azure-Endpoint directly. So it might be that the endpoint handler has this disabled and not directly the Azure-Endpoint.

@timothycarambat
Copy link
Member

This is almost certainly the culprit then. As an example, default nginx settings as a proxy will actually block streaming response and they will build in buffer and send as once completion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core-team-only investigating Core team or maintainer will or is currently looking into this issue
Projects
None yet
Development

No branches or pull requests

2 participants