OptionalapiOptionalbaseOverride the default base URL for the API
OptionaldefaultDefault headers included with every request
OptionaldefaultDefault query parameters included with every request
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 tokens that the model can process in a single response. This limits ensures computational efficiency and resource management.
The name of the model to use.
OptionalnNumber of completions to generate for each prompt
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.
OptionalstreamingWhether or not to stream responses.
OptionalstreamWhether or not to include token usage data in streamed chunks.
OptionaltemperatureThe 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.
OptionaltopTotal 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.
The Groq API key to use for requests.