diff --git a/api/db/db_models.py b/api/db/db_models.py index ecd97b2c..13571703 100644 --- a/api/db/db_models.py +++ b/api/db/db_models.py @@ -759,7 +759,7 @@ class Dialog(DataBaseModel): help_text="English|Chinese") llm_id = CharField(max_length=128, null=False, help_text="default llm ID") llm_setting = JSONField(null=False, default={"temperature": 0.1, "top_p": 0.3, "frequency_penalty": 0.7, - "presence_penalty": 0.4, "max_tokens": 215}) + "presence_penalty": 0.4, "max_tokens": 512}) prompt_type = CharField( max_length=16, null=False, diff --git a/web/src/constants/knowledge.ts b/web/src/constants/knowledge.ts index 8413560e..217f78b5 100644 --- a/web/src/constants/knowledge.ts +++ b/web/src/constants/knowledge.ts @@ -31,14 +31,14 @@ export const settledModelVariableMap = { top_p: 0.3, frequency_penalty: 0.7, presence_penalty: 0.4, - max_tokens: 215, + max_tokens: 512, }, [ModelVariableType.Balance]: { temperature: 0.5, top_p: 0.5, frequency_penalty: 0.7, presence_penalty: 0.4, - max_tokens: 215, + max_tokens: 512, }, };