Skip to content

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

Closed as not planned
Closed as not planned

Description

@Manouchehri

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/

Activity

  1. mikewirth commented on Jan 23, 2025

    @mikewirth

    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.

  2. tan-yong-sheng commented on Feb 2, 2025

    @tan-yong-sheng
    Contributor

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

    Image

  3. github-actions commented on May 4, 2025

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions