From 0869800ca92d59b5ee95079e88d9513f3936788a Mon Sep 17 00:00:00 2001 From: 13315423919 <13315423919@qq.com> Date: Fri, 7 Nov 2025 09:05:32 +0800 Subject: [PATCH] Add File --- src/landppt/web/templates/ai_config.html | 4487 ++++++++++++++++++++++ 1 file changed, 4487 insertions(+) create mode 100644 src/landppt/web/templates/ai_config.html diff --git a/src/landppt/web/templates/ai_config.html b/src/landppt/web/templates/ai_config.html new file mode 100644 index 0000000..f210a53 --- /dev/null +++ b/src/landppt/web/templates/ai_config.html @@ -0,0 +1,4487 @@ +{% extends "base.html" %} + +{% block title %}系统配置管理 - LandPPT{% endblock %} + +{% block content %} +
+

⚙️ 系统配置管理

+

+ 配置和管理 LandPPT 的所有系统参数,包括 AI 提供者、生成参数、应用配置等 +

+
+ + +
+
+ + + + +
+
+ + +
+
+
+

📊 当前状态

+ +
+

+ 当前提供者: + + {{ current_provider }} + +

+

+ 可用提供者: {{ available_providers | length }} 个 +

+

+ 状态: + {% if current_provider in available_providers %} + ✅ 正常运行 + {% else %} + ❌ 配置错误 + {% endif %} +

+
+ +
+ + +
+
+ + +
+ +
+

🔧 AI 提供者详情配置

+ +
+ {% for provider in ["openai", "anthropic", "google", "azure_openai", "ollama", "302ai"] %} +
+
+

+ {% if provider == "openai" %} + 🤖 OpenAI + {% elif provider == "anthropic" %} + 🧠 Anthropic Claude + {% elif provider == "google" %} + 🌟 Google Gemini + {% elif provider == "azure_openai" %} + ☁️ Azure OpenAI + {% elif provider == "ollama" %} + 🏠 Ollama (本地) + {% elif provider == "302ai" %} + 🚀 302.AI + {% endif %} +

+ +
+ {% if provider_status[provider] %} + + ✅ 可用 + + {% else %} + + ❌ 不可用 + + {% endif %} + +
+ + +
+
+
+ + +
+ {% if provider == "openai" %} +
+ + +
+
+ + +
+
+ +
+ + + +
+
+ {% elif provider == "anthropic" %} +
+ + +
+
+ + +
+ {% elif provider == "google" %} +
+ + +
+
+ + +
+
+ + +
+ {% elif provider == "azure_openai" %} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ {% elif provider == "ollama" %} +
+ + +
+
+ + +
+ {% elif provider == "302ai" %} +
+ + + 点击获取 +
+ +
+ +
+ + + +
+
+ {% endif %} +
+ +
+ + +
+
+ {% endfor %} +
+
+ + +
+
+
+
+
+

🧠 模型任务配置

+

该区域为高级设置,可为不同功能指定专用提供者和模型,未设置时将继承默认配置。

+
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + +{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block extra_js %} + +{% endblock %} + + + + + + + + + + +