AmosBackendOptions
The options for AmosBackend.
Fields
- baseUrloptional
string Server to call. Defaults to the hosted API, which needs no key.
- modeloptional
string Default defaultAmosModel. Always sent: the hosted API otherwise answers with
amos-1-mini.- retryoptional
AmosRetryOptions | false Retries for rate limits (429), timeouts (408), server errors (5xx) and network failures. Pass
falseto turn them off.- timeoutoptional
number | false Milliseconds to wait for each request. Default 60 seconds;
falsewaits indefinitely.- maxRequestBytesoptional
number | false Largest request body to send, in bytes. The hosted API drops the connection on bodies over about 4.2 MB.
falsesends any size.- userAgentoptional
string Sent as the User-Agent header.
- fetchoptional
typeof fetch Replaces the global
fetch, such as in tests.
Used by
image-tagger is a Ben Hodgson projectGitHub