mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-30 15:45:09 +08:00
fix: xinference max_tokens alisa error (#929)
This commit is contained in:
parent
3ea8d7a019
commit
18dd0d569d
@ -50,7 +50,7 @@ class XinferenceProvider(BaseModelProvider):
|
|||||||
top_p=KwargRule[float](min=0, max=1, default=0.7),
|
top_p=KwargRule[float](min=0, max=1, default=0.7),
|
||||||
presence_penalty=KwargRule[float](min=-2, max=2, default=0),
|
presence_penalty=KwargRule[float](min=-2, max=2, default=0),
|
||||||
frequency_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
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user