0xPlaygrounds / 0xPlaygrounds/rig-docs

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

Aperta
#91 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
MDX
Stelle
20
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

"
The Client Struct
At the core is rig::client::Client, 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.