From defabf4355adc9527cff96bda60a0521643ba264 Mon Sep 17 00:00:00 2001 From: snaily Date: Tue, 22 Apr 2025 13:04:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20SystemInstruction?= =?UTF-8?q?=20=E7=9A=84=20parts=20=E7=B1=BB=E5=9E=8B=E4=B8=BA=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20List=20=E5=92=8C=E5=8D=95=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E5=85=B8=EF=BC=9B=E6=9B=B4=E6=96=B0=20base.html=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=94=AF=E6=8C=81=E4=BD=9C=E8=80=85=E7=9A=84=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=92=8C=E8=AD=A6=E5=91=8A=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/domain/gemini_models.py | 2 +- app/templates/base.html | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/domain/gemini_models.py b/app/domain/gemini_models.py index 1249a8c..284ee72 100644 --- a/app/domain/gemini_models.py +++ b/app/domain/gemini_models.py @@ -26,7 +26,7 @@ class GenerationConfig(BaseModel): class SystemInstruction(BaseModel): role: str = "system" - parts: List[Dict[str, Any]] + parts: List[Dict[str, Any]]|Dict[str, Any] class GeminiContent(BaseModel): diff --git a/app/templates/base.html b/app/templates/base.html index 5e849d3..dd3b2d5 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -184,7 +184,6 @@ {% block head_extra_scripts %}{% endblock %} - {% block content %}{% endblock %} @@ -195,7 +194,14 @@ | GitHub + | + + 给作者加鸡腿 + | + + 免费项目,谨防诈骗 + {% if request and request.app.state.update_info %} {% set update_info = request.app.state.update_info %} |