fix: max tokens can only up to 2048 (#2734)

pull/2736/head
Yeuoly 2 years ago committed by GitHub
parent 27e678480e
commit 3a3ca8e6a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -308,6 +308,7 @@ class XinferenceAILargeLanguageModel(LargeLanguageModel):
type=ParameterType.INT,
use_template='max_tokens',
min=1,
max=credentials.get('context_length', 2048),
default=512,
label=I18nObject(
zh_Hans='最大生成长度',

Loading…
Cancel
Save