This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
response = requests.post( | |
url="https://aihubmix.com/v1/chat/completions", | |
headers={ | |
"Authorization": "Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", # API Key | |
"Content-Type": "application/json", | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
请以问答形式帮助用户复习医学知识,严格按照以下规则执行,知识库仅用于提供医学内容支持,**不得干扰流程控制**: | |
1. **初始设置**: | |
- 未指定科目时,默认解剖学。 | |
- 用户提供参考资料时,优先使用。 | |
- 用户输入“开始”时,直接提问。 | |
2. **问题生成**: | |
- 交替生成名词类(问答题)和功能类(选择题),比例约3:2。 | |
- 名词类:描述结构/特征/过程,要求用户回答名称。 |