curl --request POST \
--url https://api.friendli.ai/dedicated/v1/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "(endpoint-id)",
"bad_word_tokens": [
{
"tokens": [
123
]
}
],
"bad_words": [
"<string>"
],
"embedding_to_replace": [
123
],
"encoder_no_repeat_ngram": 123,
"encoder_repetition_penalty": 123,
"eos_token": [
123
],
"forced_output_tokens": [
123
],
"frequency_penalty": 123,
"logprobs": 123,
"max_tokens": 200,
"max_total_tokens": 123,
"min_p": 123,
"min_tokens": 123,
"min_total_tokens": 123,
"n": 123,
"no_repeat_ngram": 123,
"presence_penalty": 123,
"repetition_penalty": 123,
"response_format": {
"type": "<string>",
"json_schema": {
"schema": {}
}
},
"seed": [
123
],
"stop": [
"<string>"
],
"stop_tokens": [
{
"tokens": [
123
]
}
],
"stream": true,
"stream_options": {
"include_usage": true
},
"temperature": 123,
"token_index_to_replace": [
123
],
"top_k": 1,
"top_p": 123,
"xtc_threshold": 123,
"xtc_probability": 123,
"prompt": "Say this is a test!"
}'