Skip to content

Build fails on WASM as reqwest::blocking is not available #8

@coolbluewater

Description

@coolbluewater

On wasm targets only async calls are available.
As a result, reqwest::blocking::Client is not available.
reqwest::Client (the async version of the client) should be used instead.

To support this there are two choices:

  1. Expose blocking as well as non-blocking APIs for the llm crate, with only the latter available on WASM.
  2. Breaking change: make all the API's non-blocking, thus exposing a single async surface.

Personally I'm in favor of the latter as there isn't a good reason to have these calls block.

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