ReadonlyidProvider id.
ReadonlyquirksThe quirks in use. streamOptions may turn off after a rejection.
Private ReadonlybasePrivate ReadonlyurlPrivate ReadonlyheadersPrivate ReadonlyfetchPrivategeneratedStreams one model turn. Aborting signal stops the stream.
Lists the models of the server: GET {baseUrl}/models. Every server
gives the ids. OpenRouter also gives the context window, the max output,
the supported parameters and the prices, and parseModelList
reads them. The key (when there is one) only goes to the base URL.
PrivatepostSends one request. Network failures become network errors.
A provider for any server that speaks the OpenAI Chat Completions format.