Phase 1: Add SiliconFlow provider + DeepSeek-V4-Flash, optimize Dockerfile with Tsinghua mirrors

This commit is contained in:
qyyfw committed 2026-07-02 16:34:16 +08:00
1 parent bd3b0df4f0
commit 70dd2b69af
4 files changed
+30 -7

No files matched your search

+4 -2
View File
@@ -53,7 +53,8 @@ INSERT IGNORE INTO risk_rules (id, name, type, threshold, duration, is_enabled)
INSERT IGNORE INTO model_providers (id, name, protocol, api_key, api_base_url) VALUES
('prov-001', 'DeepSeek', 'openai_compatible', '', 'https://api.deepseek.com'),
('prov-002', 'OpenAI', 'openai_compatible', '', 'https://api.openai.com'),
('prov-003', '通义千问', 'openai_compatible', '', 'https://dashscope.aliyuncs.com');
('prov-003', '通义千问', 'openai_compatible', '', 'https://dashscope.aliyuncs.com'),
('prov-004', 'SiliconFlow', 'openai_compatible', 'sk-idsplzeccvmbtyqxcrbhaiwmkzwajmicliunkjkouivepaaz', 'https://api.siliconflow.cn');
-- ============================================================
-- 初始化模型
@@ -63,7 +64,8 @@ INSERT IGNORE INTO models (id, provider_id, name, api_key, endpoint, capabilitie
('model-002', 'prov-002', 'GPT-4o', '', 'https://api.openai.com/v1/chat/completions', '["text", "vision", "tool"]', 60, 'paid', 10.0000, 1, 0, 0),
('model-003', 'prov-003', 'Qwen-Max', '', 'https://dashscope.aliyuncs.com/compatible-mode/v1', '["text", "tool"]', 60, 'free', 0.0000, 1, 0, 0),
('model-004', 'prov-001', 'DeepSeek-R1', '', 'https://api.deepseek.com/v1/chat/completions', '["text", "thinking"]', 120, 'paid', 4.0000, 1, 0, 0),
('model-005', 'prov-003', 'Qwen-Plus', '', 'https://dashscope.aliyuncs.com/compatible-mode/v1', '["text"]', 60, 'free', 0.0000, 0, 0, 0);
('model-005', 'prov-003', 'Qwen-Plus', '', 'https://dashscope.aliyuncs.com/compatible-mode/v1', '["text"]', 60, 'free', 0.0000, 0, 0, 0),
('model-006', 'prov-004', 'DeepSeek-V4-Flash', '', 'https://api.siliconflow.cn/v1/chat/completions', '["text", "thinking", "tool"]', 60, 'free', 0.0000, 1, 0, 0);
-- ============================================================
-- 初始化会员套餐