35 lines
1.4 KiB
Python
35 lines
1.4 KiB
Python
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"},
|
||
{"model_id": "deepseek-r1", "model_name": "DeepSeek R1", "model_type": "reasoning"},
|
||
]
|
||
}
|
||
]
|