friendli api completions
friendli api completions create
Creat text completions using the Friendli API. Customize your completions with various options like prompts, model selection, token limits, and more to create precise, tailored outputs.
Usage
Summary
Creates text completions.
Options
Option | Type | Summary | Default | Required |
---|---|---|---|---|
--prompt , -p | TEXT | The input text to generate completion for. | - | ✅ |
--model , -m | TEXT | The model to use for chat completions. See here for more about available models and pricing. | - | ✅ |
--n , -n | INTEGER RANGE | The number of results to generate. | None | ❌ |
--max-tokens , -M | INTEGER RANGE | The maximum number of tokens to generate. | None | ❌ |
--stop , -S | TEXT | When one of the stop phrases appears in the generation result, the API will stop generation. The stop phrases are excluded from the result. Repeat this option to use multiple stop phrases. | None | ❌ |
--temperature , -T | FLOAT RANGE | Sampling temperature. non-zero positive numbers are allowed. | None | ❌ |
--top-p , -P | FLOAT RANGE | Tokens comprising the top top_p probability mass are kept for sampling. | None | ❌ |
--frequency-penalty , -fp | FLOAT RANGE | Positive values penalizes tokens that have been sampled, taking into account their frequency in the preceding text. This penalization diminishes the model’s tendency to reproduce identical lines verbatim. | None | ❌ |
--presence-penalty , -pp | FLOAT RANGE | Positive values penalizes tokens that have been sampled at least once in the existing text. | None | ❌ |
--stream , -s | BOOLEAN | Whether to stream generation result. | False | ❌ |
--token , -t | TEXT | Friendli Token for auth. | None | ❌ |
--team | TEXT | ID of team to run as. | None | ❌ |
Was this page helpful?