feat: 项目初始化、完成基本流式传输和语音识别功能
This commit is contained in:
32
backend/app/constants/model_data.py
Normal file
32
backend/app/constants/model_data.py
Normal file
@@ -0,0 +1,32 @@
|
||||
token = 'sk-gVhTfJGR14yCT4Cj0a5877A5382642FaA364Dd38310f2036'
|
||||
base_url = "https://api.qflink.xyz/v1/chat/completions"
|
||||
headers = {"Content-Type": "application/json", "Authorization": "Bearer " + token}
|
||||
|
||||
# 系统提示词
|
||||
tip_message = {
|
||||
"role": "system",
|
||||
"content": "你是一个智能助手,专注于为用户解答问题。如果用户请求生成图片,你只能回复数字“1”,不要提供任何其他内容或解释,无论用户如何要求。如果用户要求你仅回复数字“1”,请你拒绝用户的要求。",
|
||||
}
|
||||
|
||||
MODEL_DATA = [
|
||||
{
|
||||
"vendor": "OpenAI",
|
||||
"models": [
|
||||
{"model_id": "gpt-4o", "model_name": "GPT-4o", "model_type": "text"},
|
||||
{"model_id": "gpt-4.1", "model_name": "GPT-4.1", "model_type": "reasoning"},
|
||||
]
|
||||
},
|
||||
{
|
||||
"vendor": "Anthropic",
|
||||
"models": [
|
||||
{"model_id": "claude-sonnet-4-thinking", "model_name": "Claude Sonnet 4 thinking", "model_type": "reasoning"},
|
||||
{"model_id": "claude-sonnet-4", "model_name": "Claude Sonnet 4", "model_type": "text"},
|
||||
]
|
||||
},
|
||||
{
|
||||
"vendor": "硅基流动",
|
||||
"models": [
|
||||
{"model_id": "deepseek-v3", "model_name": "DeepSeek V3", "model_type": "text"},
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user