OptionalapiOptionalcacheOptionalcallbackOptionalcallbacksOptionalmaxThe maximum number of concurrent calls that can be made.
Defaults to Infinity, which means no limit.
OptionalmaxThe maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.
OptionalmaxThe maximum number of tokens that the model can process in a single response. This limits ensures computational efficiency and resource management.
OptionalmetadataOptionalmodelThe name of the model to use.
OptionalmodelThe name of the model to use.
Alias for model
OptionalonCustom handler to handle failed attempts. Takes the originally thrown error object as input, and should itself throw an error if the input error is not retryable.
OptionalstopUp to 4 sequences where the API will stop generating further tokens. The
returned text will not contain the stop sequence.
Alias for stopSequences
OptionalstopUp to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
OptionalstreamingWhether or not to stream responses.
OptionaltagsOptionaltemperatureThe temperature to use for sampling.
Optionalverbose
The Groq API key to use for requests.