openai_ex icon indicating copy to clipboard operation
openai_ex copied to clipboard

Malformed payload in Run Stream

Open restlessronin opened this issue 1 month ago • 0 comments

          Hey @eddy147 thanks for the work on the stream. Unfortunately I'm still experiencing the same malformed payload on `v0.6.3`
    run_req =
      Runs.new(
        thread_id: thread_id,
        assistant_id: @assistant_id,
        model: @model_o
      )

    run_stream = openai() |> Runs.create(run_req, stream: true)

    run_stream.body_stream
    |> Stream.flat_map(& &1)
    |> Stream.each(&IO.inspect/1)
    |> Stream.run()
%{
  eventType: "thread.run.completed\ndata: {\"id\":\

Originally posted by @xantrac in https://github.com/restlessronin/openai_ex/issues/89#issuecomment-2115343357

restlessronin avatar May 16 '24 14:05 restlessronin