POST
POST
Mistral AIMistral AIChatCreate FIM Completions
POST
https://api.lowcodeapi.com/mistralai/v1/fim/completions
Request Body
Content Type : application/json
Request Parameters
promptstring
The text/code to complete
suffixstring
Optional text/code that adds more context for the model
modelstring
ID of the model to use.
temperaturenumber
Default: 0.7 What sampling temperature to use, between 0.0 and 1.0. Higher values like 0.8 will make the outptu more random, while lower values like 0.2 will make it more focused and deterministic.
top_pnumber
Nucleus sampling, where the model considers the results of the tokens with with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
max_tokensnumber
The maximum number of tokens to generate in the completion.The token count of your prompt plus max_tokens cannot exceed the model's context length
min_tokensnumber
The minimum number of tokens to generate in the completion.
streamboolean
Whether to stream back partial progress. If set, tokens will be sent as data-only server-side events as they become available, with the stream terminated by a data: [DONE] message..
random_seednumber
The seed to use for random sampling. If set, different calls will generate deterministic results
stoparray
Stop generation if this token is detected
Overview

Create FIM Completions

API Reference Link
https://docs.mistral.ai/api/#operation/createChatCompletion
Response
API response data will be shown here once the request is completed.
Snippet
cURL
curl -X POST \
 'https://api.lowcodeapi.com/mistralai/v1/fim/completions' \
 -H 'Cache-Control: no-cache' \
 -H 'Content-Type: application/json' --data-raw '{
  "prompt": "",
  "suffix": "",
  "model": "",
  "temperature": "",
  "top_p": "",
  "max_tokens": "",
  "min_tokens": "",
  "stream": "",
  "random_seed": "",
  "stop": []
}'
© 2024LowCodeAPI

Last Updated : 2024-12-16 14:03 +00:00