init ai api key

This commit is contained in:
xie7654
2025-07-10 15:32:00 +08:00
parent bf07ff5744
commit 65bdda6377
26 changed files with 1825 additions and 6 deletions

21
backend/ai/choices.py Normal file
View File

@@ -0,0 +1,21 @@
from django.db import models
class PlatformChoices(models.TextChoices):
AZURE_OPENAI = 'AzureOpenAI', 'OpenAI 微软'
OPENAI = 'OpenAI', 'OpenAI'
OLLAMA = 'Ollama', 'Ollama'
YIYAN = 'YiYan', '文心一言'
XINGHUO = 'XingHuo', '讯飞星火'
TONGYI = 'TongYi', '通义千问'
STABLE_DIFFUSION = 'StableDiffusion', 'StableDiffusion'
MIDJOURNEY = 'Midjourney', 'Midjourney'
SUNO = 'Suno', 'Suno'
DEEPSEEK = 'DeepSeek', 'DeepSeek'
DOUBAO = 'DouBao', '字节豆包'
HUNYUAN = 'HunYuan', '腾讯混元'
SILICON_FLOW = 'SiliconFlow', '硅基流动'
ZHIPU = 'ZhiPu', '智谱'
MINIMAX = 'MiniMax', 'MiniMax'
MOONSHOT = 'Moonshot', '月之暗灭'
BAICHUAN = 'BaiChuan', '百川智能'