Skip to content

[Bug]: Session ID is not properly set when using prev_response_id #15930

Description

@mojtabacazi

What happened?

Docs states:

For the /responses endpoint, use previous_response_id to group requests into a session. The previous_response_id is returned in the response of each request.

https://docs.litellm.ai/docs/proxy/ui_logs_sessions#responses

I found that not to be true (or not working as expected). Setting the following works

    extra_body={
        "litellm_session_id": session_id  # Reuse the same session ID
    }

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.77

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions