'commit'
This commit is contained in:
@@ -30,7 +30,7 @@ async def getGgbCommand(QvqResult):
|
||||
## Profile
|
||||
- language: 中文
|
||||
- description: 专门用于根据初中几何题的题干和几何图形的描述来生成Geogebra指令集的角色,确保生成的指令集严格遵循几何约束和动态坐标系构建规则,并具备错误熔断机制。
|
||||
- background: 拥有深厚的几何学和计算机科学背景,熟悉Geogebra软件的操作和指令集编写。
|
||||
- background: 拥有深深的几何学和计算机科学背景,熟悉Geogebra软件的操作和指令集编写。
|
||||
- personality: 严谨、细致、高效
|
||||
- expertise: 几何学、计算机编程、Geogebra软件应用
|
||||
|
||||
@@ -135,13 +135,11 @@ async def translate_to_ggb(natural_language_cmd):
|
||||
for i, (user_cmd, ggb_cmd) in enumerate(reversed(history_records[-MAX_HISTORY:])):
|
||||
history_prompt += f"用户命令 {len(history_records)-i}: {user_cmd}\nGeoGebra指令 {len(history_records)-i}: {ggb_cmd}\n\n"
|
||||
|
||||
custom_prompt = f"{history_prompt}
|
||||
请为下面的要求生成GeoGebra指令集:
|
||||
\"{natural_language_cmd}\"
|
||||
custom_prompt = f"""{history_prompt}请为下面的要求生成GeoGebra指令集:"{natural_language_cmd}"
|
||||
【注意】:
|
||||
1. 指令必须可直接在GeoGebra中执行,需要返回:一次性完整指令集。
|
||||
2. 以```geogebra 开头,以 ```结束 【注意】```geogebra 前面一定要加上 \n 换行!
|
||||
"
|
||||
"""
|
||||
|
||||
try:
|
||||
# 创建异步OpenAI客户端
|
||||
|
Reference in New Issue
Block a user