浏览代码

fix: max_token default help info improved (#2951)

tags/0.5.11
orangeclk 1年前
父节点
当前提交
4fb9606361
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      api/core/model_runtime/entities/defaults.py

+ 2
- 2
api/core/model_runtime/entities/defaults.py 查看文件

}, },
'type': 'int', 'type': 'int',
'help': { 'help': {
'en_US': 'The maximum number of tokens to generate. Requests can use up to 2048 tokens shared between prompt and completion.',
'zh_Hans': '要生成的标记的最大数量。请求可以使用最多2048个标记,这些标记在提示和完成之间共享。',
'en_US': 'Specifies the upper limit on the length of generated results. If the generated results are truncated, you can increase this parameter.',
'zh_Hans': '指定生成结果长度的上限。如果生成结果截断,可以调大该参数。',
}, },
'required': False, 'required': False,
'default': 64, 'default': 64,

正在加载...
取消
保存