Skip to content

Commit 33b1cd6

Browse files
authored
fix: Ollama maximum output token field (#2973)
1 parent 8d503c8 commit 33b1cd6

File tree

1 file changed

+1
-1
lines changed
  • apps/setting/models_provider/impl/ollama_model_provider/credential

1 file changed

+1
-1
lines changed

apps/setting/models_provider/impl/ollama_model_provider/credential/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class OllamaLLMModelParams(BaseForm):
2525
_step=0.01,
2626
precision=2)
2727

28-
max_tokens = forms.SliderField(
28+
num_predict = forms.SliderField(
2929
TooltipLabel(_('Output the maximum Tokens'),
3030
_('Specify the maximum number of tokens that the model can generate')),
3131
required=True, default_value=1024,

0 commit comments

Comments
 (0)