Skip to content

Using async-http-faraday adapter doesn't work #548

Open
@mackross

Description

@mackross

Describe the bug
Unable to use ruby-openai with the 'async' fiber scheduler, the faraday adapter throws an error.

To Reproduce
Add async-http-faraday gem to Gemfile
include require 'async/http/faraday' somewhere.

Use client = OpenAI::Client.new do{ |f| f.adapter = :async_http } for a streaming completion.

raises error Faraday::NilStatusError: http status could not be derived from the server response

Expected behavior
Works as normal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions