openai_ex
openai_ex copied to clipboard
Malformed payload in Run Stream
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