Optional apiThe Groq API key to use for requests.
process.env.GROQ_API_KEY
Optional cacheOptional callbackUse callbacks instead
This feature is deprecated and will be removed in the future.
It is not recommended for use.
Optional callbacksOptional maxThe maximum number of concurrent calls that can be made.
Defaults to Infinity, which means no limit.
Optional maxThe maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.
Optional metadataOptional modelThe name of the model to use.
"llama2-70b-4096"
Optional onCustom 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.
Optional stopUp to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
Optional streamingWhether or not to stream responses.
Optional tagsOptional temperatureThe temperature to use for sampling.
0.7
Optional verboseGenerated using TypeDoc
Represents the parameters for a base chat model.