OptionalapiOptionalbaseOverride the default base URL for the API
OptionalcacheOptionalcallbackOptionalcallbacksOptionaldefaultDefault headers included with every request
OptionaldefaultDefault query parameters included with every request
OptionaldisableWhether to disable streaming.
If streaming is bypassed, then stream() will defer to
invoke().
OptionalfetchCustom fetch function implementation
OptionalfrequencyPenalizes repeated tokens according to frequency
OptionalhttpHTTP agent used to manage connections
OptionallogitDictionary used to adjust the probability of specific tokens being generated
OptionallogprobsWhether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
OptionalmaxThe 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.
OptionalmetadataThe name of the model to use.
OptionalnNumber of completions to generate for each prompt
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.
OptionalpresencePenalizes repeated tokens
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.
OptionalstreamWhether or not to include token usage data in streamed chunks.
OptionalstreamingWhether or not to stream responses.
OptionaltagsOptionaltemperatureThe temperature to use for sampling.
OptionaltimeoutThe maximum amount of time (in milliseconds) the client will wait for a response
OptionaltopAn integer between 0 and 5 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
OptionaltopPTotal probability mass of tokens to consider at each step
OptionaluserUnique string identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Optionalverbose
The Groq API key to use for requests.