Skip to content

H in Client<Ext, H> refers to the HTTP backend, and not the ApiKey #91

Description

@BalaBoi

"
The Client Struct
At the core is rig::client::Client<Ext, H>, a generic struct parameterized by:

Ext: A provider extension (implementing the Provider trait) that defines provider-specific behavior
H: An API key type (implementing the ApiKey trait)
"

When I was going through the docs and trying out rig side by side, I noticed that H is actually defaulting to reqwest::Client and not related to the API Key. The documentation should be updated to reflect this

the link for reference https://rig.rs/docs/concepts/provider_clients#the-client-struct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions