mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-09-08 01:06:37 +08:00
fix: 更新 SystemInstruction 的 parts 类型为支持 List 和单个字典;更新 base.html 添加支持作者的链接和警告信息
This commit is contained in:
@@ -26,7 +26,7 @@ class GenerationConfig(BaseModel):
|
|||||||
|
|
||||||
class SystemInstruction(BaseModel):
|
class SystemInstruction(BaseModel):
|
||||||
role: str = "system"
|
role: str = "system"
|
||||||
parts: List[Dict[str, Any]]
|
parts: List[Dict[str, Any]]|Dict[str, Any]
|
||||||
|
|
||||||
|
|
||||||
class GeminiContent(BaseModel):
|
class GeminiContent(BaseModel):
|
||||||
|
|||||||
@@ -184,7 +184,6 @@
|
|||||||
{% block head_extra_scripts %}{% endblock %}
|
{% block head_extra_scripts %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-gradient min-h-screen text-gray-800 pt-6 pb-16">
|
<body class="bg-gradient min-h-screen text-gray-800 pt-6 pb-16">
|
||||||
|
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
|
||||||
<!-- 底部版权 -->
|
<!-- 底部版权 -->
|
||||||
@@ -195,7 +194,14 @@
|
|||||||
</a> |
|
</a> |
|
||||||
<a href="https://github.com/snailyp/gemini-balance" target="_blank" class="text-primary-600 hover:text-primary-800 transition duration-300">
|
<a href="https://github.com/snailyp/gemini-balance" target="_blank" class="text-primary-600 hover:text-primary-800 transition duration-300">
|
||||||
<i class="fab fa-github"></i> GitHub
|
<i class="fab fa-github"></i> GitHub
|
||||||
|
</a> |
|
||||||
|
<a href="https://afdian.com/a/snaily" target="_blank" class="text-primary-600 hover:text-primary-800 transition duration-300">
|
||||||
|
<i class="fas fa-drumstick-bite text-yellow-600"></i> 给作者加鸡腿
|
||||||
</a>
|
</a>
|
||||||
|
<span class="mx-1">|</span>
|
||||||
|
<span class="text-xs text-yellow-600 font-semibold">
|
||||||
|
<i class="fas fa-exclamation-triangle mr-1"></i>免费项目,谨防诈骗
|
||||||
|
</span>
|
||||||
{% if request and request.app.state.update_info %}
|
{% if request and request.app.state.update_info %}
|
||||||
{% set update_info = request.app.state.update_info %}
|
{% set update_info = request.app.state.update_info %}
|
||||||
<span class="mx-1">|</span>
|
<span class="mx-1">|</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user