fix: xinference max_tokens alisa error (#929)

This commit is contained in:
takatost 2023-08-20 19:12:52 +08:00 committed by GitHub
parent 3ea8d7a019
commit 18dd0d569d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ class XinferenceProvider(BaseModelProvider):
top_p=KwargRule[float](min=0, max=1, default=0.7),
presence_penalty=KwargRule[float](min=-2, max=2, default=0),
frequency_penalty=KwargRule[float](min=-2, max=2, default=0),
max_tokens=KwargRule[int](alias='max_token', min=10, max=4000, default=256),
max_tokens=KwargRule[int](min=10, max=4000, default=256),
)
@classmethod