Chat Model
Identifier of a DeepSeek model, serialized as the raw slug the API expects.
The API serves two models — DEEPSEEK_FLASH and DEEPSEEK_V4_PRO — and answers an unknown slug with a 400 that names them both, so a typo fails loudly rather than silently picking a model:
The supported API model names are deepseek-flash, deepseek-v4-pro,
but you passed deepseek-does-not-exist.Content copied to clipboard
Several retired names still resolve to DEEPSEEK_FLASH — deepseek-chat, deepseek-reasoner, deepseek-v4-flash and deepseek-v4-flash-vision-exp. The SDK declares constants only for the two the API acknowledges; any other slug can be wrapped directly, so an alias, or a model released after this version, stays usable:
val params = chatCompletionParams { model = ChatModel.DEEPSEEK_V4_PRO }
val alias = chatCompletionParams { model = ChatModel("deepseek-v4-flash") }Content copied to clipboard
A response echoes the model that actually ran, which for every alias is deepseek-flash — read ChatCompletion.model rather than assuming the slug that was sent.