<aside> ⚠️ In any case, you should check the official document, this note may be outdated in the future.
</aside>
This note is only for working with APIs from AI Services. If you use the AI services as their tools and chat apps, check this note instead.
null in the request body. OpenAI allows that (not with AzureOpenAI, I tried with stream_options). In OpenAI request, if you input null, the default value for that property will be used. However, there will be an error if you put null in the request body of Mistral.
user and n parameters.| OpenAI | Mistral | Claude | Gemini | |
|---|---|---|---|---|
| Range | [0, 2] | [0, 1] | [0, 1] | [0, 2] (gemini-1.5-pro) |
[0, 1] (gemini-1.0-pro-vision) |
||||
[0, 2] (gemini-1.0-pro-002) |
||||
[0, 1] (gemini-1.0-pro-001) |
||||
| Default | 1 | 0.7 | 1 | 1 (gemini-1.5-pro) |
0.4 (gemini-1.0-pro-vision) |
||||
1 (gemini-1.0-pro-002) |
||||
0.9 (gemini-1.0-pro-001) |
No services give a very clear discription about the max tokens. You have to read the documentation carefully.