fix: azure openai model parameters wrong when using hosting credentials (#1993)

This commit is contained in:
takatost 2024-01-11 10:49:35 +08:00 committed by GitHub
commit bf7045566d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 5 deletions

View file

@ -296,7 +296,7 @@ LLM_BASE_MODELS = [
name='frequency_penalty',
**PARAMETER_RULE_TEMPLATE[DefaultParameterName.FREQUENCY_PENALTY],
),
_get_max_tokens(default=512, min_val=1, max_val=128000),
_get_max_tokens(default=512, min_val=1, max_val=4096),
ParameterRule(
name='seed',
label=I18nObject(
@ -369,7 +369,7 @@ LLM_BASE_MODELS = [
name='frequency_penalty',
**PARAMETER_RULE_TEMPLATE[DefaultParameterName.FREQUENCY_PENALTY],
),
_get_max_tokens(default=512, min_val=1, max_val=128000),
_get_max_tokens(default=512, min_val=1, max_val=4096),
ParameterRule(
name='seed',
label=I18nObject(

View file

@ -22,7 +22,7 @@ parameter_rules:
use_template: max_tokens
default: 512
min: 1
max: 128000
max: 4096
- name: seed
label:
zh_Hans: 种子

View file

@ -21,7 +21,7 @@ parameter_rules:
use_template: max_tokens
default: 512
min: 1
max: 128000
max: 4096
- name: seed
label:
zh_Hans: 种子