Skip to content

Search

AmosBackendOptions

TypeBackends Source

The options for AmosBackend.

Fields

baseUrloptionalstring

Server to call. Defaults to the hosted API, which needs no key.

modeloptionalstring

Default defaultAmosModel. Always sent: the hosted API otherwise answers with amos-1-mini.

retryoptionalAmosRetryOptions | false

Retries for rate limits (429), timeouts (408), server errors (5xx) and network failures. Pass false to turn them off.

timeoutoptionalnumber | false

Milliseconds to wait for each request. Default 60 seconds; false waits indefinitely.

maxRequestBytesoptionalnumber | false

Largest request body to send, in bytes. The hosted API drops the connection on bodies over about 4.2 MB. false sends any size.

userAgentoptionalstring

Sent as the User-Agent header.

fetchoptionaltypeof fetch

Replaces the global fetch, such as in tests.

image-tagger is a Ben Hodgson projectGitHub