mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 06:39:06 +08:00
fix: max tokens can only up to 2048 (#2734)
This commit is contained in:
parent
27e678480e
commit
3a3ca8e6a9
@ -308,6 +308,7 @@ class XinferenceAILargeLanguageModel(LargeLanguageModel):
|
|||||||
type=ParameterType.INT,
|
type=ParameterType.INT,
|
||||||
use_template='max_tokens',
|
use_template='max_tokens',
|
||||||
min=1,
|
min=1,
|
||||||
|
max=credentials.get('context_length', 2048),
|
||||||
default=512,
|
default=512,
|
||||||
label=I18nObject(
|
label=I18nObject(
|
||||||
zh_Hans='最大生成长度',
|
zh_Hans='最大生成长度',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user