FIMCompletion Request
Represents the FIM (Fill-In-the-Middle) Completion request
Constructors
Types
Properties
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
Include the log probabilities on the logprobs
most likely output tokens, as well the chosen tokens. For example, if logprobs
is 20, the API will return a list of the 20 most likely tokens. The API will always return the logprob
of the sampled token, so there may be up to logprobs+1
elements in the response.
Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
Up to 16 sequences where the API will stop generating further tokens.
Options for streaming response. Only set this when you set stream: true
.
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.