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

[Feature]: Force enable fake streaming per model #5416

Open
Manouchehri opened this issue Aug 28, 2024 · 2 comments
Open

[Feature]: Force enable fake streaming per model #5416

Manouchehri opened this issue Aug 28, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Manouchehri
Copy link
Collaborator

The Feature

I would like to disable streaming on a per-model basis in my proxy yaml config, and have LiteLLM do a non-streaming request upstream (while returning a fake-streaming response to the client).

Basically what was mentioned here: #61 (comment)

Motivation, pitch

When streaming on OpenAI, their moderation filter makes the responses insanely slow. Like, I sometimes timeout after >10 minutes.

I don't want to change my client-side code, as I do want other providers (like Azure OpenAI) in the same model group to stream (as the perf impact isn't as bad).

Twitter / LinkedIn details

https://www.linkedin.com/in/davidmanouchehri/

@mikewirth
Copy link

This would be useful for me as well, as I'm trying to use https://mockgpt.wiremock.io/ through LiteLLM.

MockGPT doesn't support streaming, but I want to use it when load testing to replace GPT-4o. I can't control if my client application sends stream=True to LiteLLM.

@tan-yong-sheng
Copy link

Facing similar problem when I try to use GitHub/o1-mini on openwebui... I hope I could disable the stream per model basis.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants