@ReSalvat 在 我独自一人用Python3写了一款 ai,无需显卡,代码已开源,效果超越DeepSeek R2 中发帖
import time
import requests
# GitHub Gist 配置
GIST_ID = "你的Gist ID" # 例如 "abc1234567890"
GIST_URL = f"https://api.github.com/gists/{GIST_ID}"
# 发送用户输入到 Gist
def send_message(user_input):
data = {
"files": {
"conversation.txt": {
"content": f"用户: {user_input}\nAI: (等待回复...)"
}
}
}
response = requests.patch(GIST_URL, json=data)
...