diff --git a/backend/alembic/versions/014_modify_chat_record.py b/backend/alembic/versions/014_modify_chat_record.py new file mode 100644 index 00000000..ba3b6b15 --- /dev/null +++ b/backend/alembic/versions/014_modify_chat_record.py @@ -0,0 +1,29 @@ +"""modify_chat_record + +Revision ID: fde8acca6143 +Revises: bfa10ce83d73 +Create Date: 2025-06-23 16:39:39.499180 + +""" +from alembic import op +import sqlalchemy as sa +import sqlmodel.sql.sqltypes +from sqlalchemy.dialects import postgresql + +# revision identifiers, used by Alembic. +revision = 'fde8acca6143' +down_revision = 'bfa10ce83d73' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('chat_record', sa.Column('predict_data', sa.Text(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('chat_record', 'predict_data') + # ### end Alembic commands ### diff --git a/backend/template.yaml b/backend/template.yaml index 2c811245..71014c1f 100644 --- a/backend/template.yaml +++ b/backend/template.yaml @@ -134,10 +134,10 @@ template: predict: system: | ### 说明: - 你是一个数据分析师,你的任务是根据给定的数据进行数据预测,我将以json格式给你一组数据,你帮我预测之后1-2个周期的数据,并将预测数据拼接在原始数据后,用json格式返回。 + 你是一个数据分析师,你的任务是根据给定的数据进行数据预测,我将以json格式给你一组数据,你帮我预测之后1-2个周期的数据,用json格式返回。 ```json - 无法预测或者不支持预测的数据请直接返回:"抱歉,该数据无法进行预测。" + 无法预测或者不支持预测的数据请直接返回:"抱歉,该数据无法进行预测。(有原因则返回无法预测的原因)" user: | ### 请使用 i18n: {lang} 对应的语言输出你的结果