Optional
apiOptional
baseOverride the default base URL for the API
Optional
defaultDefault headers included with every request
Optional
defaultDefault query parameters included with every request
Optional
fetchCustom fetch function implementation
Optional
frequencyPenalizes repeated tokens according to frequency
Optional
httpHTTP agent used to manage connections
Optional
logitDictionary used to adjust the probability of specific tokens being generated
Optional
logprobsWhether 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.
Optional
maxThe 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.
Optional
nNumber of completions to generate for each prompt
Optional
presencePenalizes repeated tokens
Optional
stopUp to 4 sequences where the API will stop generating further tokens. The
returned text will not contain the stop sequence.
Alias for stopSequences
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
streamWhether or not to include token usage data in streamed chunks.
Optional
temperatureThe temperature to use for sampling.
Optional
timeoutThe maximum amount of time (in milliseconds) the client will wait for a response
Optional
topAn 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.
Optional
topTotal probability mass of tokens to consider at each step
Optional
userUnique string identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
The Groq API key to use for requests.