Browse Source

fix: xinference max_tokens alisa error (#929)

tags/0.3.15
takatost 2 years ago
parent
commit
18dd0d569d
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/core/model_providers/providers/xinference_provider.py

+ 1
- 1
api/core/model_providers/providers/xinference_provider.py 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

Loading…
Cancel
Save