DeepSeek: DeepSeek V3
deepseek/deepseek-chat- 模态
- text->text
- 输入 / 输出价格
- $0.32 / $0.89
- 上下文
- 164K
- 上架
- 2024年12月26日
- 知识截止
- 2024-07-31
每百万
DeepSeek-V3 is the latest model from the DeepSeek team, building upon the instruction following and coding abilities of the previous versions. Pre-trained on nearly 15 trillion tokens, the reported evaluations...
工具调用结构化输出长上下文
支持的参数
frequency_penalty频率惩罚
按 token 已出现的次数降低它再次出现的概率。
logit_biasLogit 偏置
按 token id 加减分,用来鼓励或禁止某些 token。
max_tokens输出上限
最多生成多少 token。达到上限会截断。
min_p最小概率
丢掉概率低于该阈值的 token。
presence_penalty存在惩罚
只要 token 出现过就降低它再次出现的概率。
repetition_penalty重复惩罚
对已经生成过的内容施加重复惩罚,常见于开源模型。
response_format响应格式
例如 json_object 或 json_schema,用于约束输出形状。
seed随机种子
固定种子有助于复现采样结果,不保证字节级一致。
stop停止词
生成到这些字符串时停止。可以是字符串或字符串数组。
structured_outputs结构化输出
按 JSON Schema 生成可解析的结构。
temperature温度
采样温度。越低越稳定,越高越发散。常见范围 0 到 2。
tool_choice工具选择
控制是否调用工具:auto、none,或指定某个函数。
tools工具
传入函数工具定义,模型可以返回 tool_calls。
top_kTop-K
只从概率最高的 K 个 token 里采样。
top_p核采样
只在累计概率达到 top_p 的 token 里采样。