OptionalapiWriter API key
OptionalbestGenerates this many completions server-side and returns the "best"."
OptionalcacheOptionalcallbackOptionalcallbacksOptionalconcurrencyOptionalfrequencyPenalizes repeated tokens according to frequency.
OptionallogprobsWhether to return log probabilities.
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.
OptionalmaxMaximum number of tokens to generate in the completion.
OptionalmetadataOptionalminMinimum number of tokens to generate.
OptionalmodelModel to use
OptionalnNumber of completions to generate.
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.
OptionalorgWriter organization ID
OptionalpresencePenalizes repeated tokens regardless of frequency.
OptionaltagsOptionaltemperatureSampling temperature to use
OptionaltopPTotal probability mass of tokens to consider at each step.
Optionalverbose
Interface for the input parameters specific to the Writer model.