Unverified Commit 3a3ca8e6 authored by Yeuoly's avatar Yeuoly Committed by GitHub

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

parent 27e67848
...@@ -308,6 +308,7 @@ class XinferenceAILargeLanguageModel(LargeLanguageModel): ...@@ -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='最大生成长度',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment