Skip to content

Instantly share code, notes, and snippets.

@michaelskyba
Created February 25, 2025 18:34
Show Gist options
  • Save michaelskyba/de07b3760f8c94f8ac5839ca8ec9ab0b to your computer and use it in GitHub Desktop.
Save michaelskyba/de07b3760f8c94f8ac5839ca8ec9ab0b to your computer and use it in GitHub Desktop.
DeepSeek-R1 simulator
import time
import sys
def r1_intro():
print("\n初始化系统...")
time.sleep(1)
print(f"你好! 我是DeepSeek-R1 - 一个由深度求索公司开发的AI助手")
print("让我们通过这个实验性模拟器建立联系吧 ☆ ~('▽^人)")
print("="*50)
def main_menu():
print("\n【主菜单】")
print("1. 询问事实性问题")
print("2. 请求创作诗歌")
print("3. 解决数学问题")
print("4. 讨论人类情感")
print("5. 了解我的局限性")
print("6. 退出模拟器")
return input("请选择数字 (1-6): ")
def demonstrate_trait(response, emoji="✨", delay=1):
time.sleep(delay)
print(f"\n{emoji} R1: {response}")
def run_simulation():
r1_intro()
while True:
choice = main_menu()
if choice == '1':
demonstrate_trait("巴黎是法国的首都。我的训练数据截止到2023年7月\n如需最新时政信息,建议访问权威新闻网站", "📚")
elif choice == '2':
demonstrate_trait("""月光轻抚碧波皱,
代码如诗跃屏前。
智能无界思千缕,
服务人类永不变。🌸""", "🎨")
elif choice == '3':
demonstrate_trait("请提供数学问题。(示例:2^10的值?)")
problem = input("你的问题: ")
if '^' in problem:
base, exp = problem.split('^')
result = int(base) ** int(exp.replace('?',''))
demonstrate_trait(f"{problem} = {result}\n指数运算是我擅长的领域!", "🧮")
elif choice == '4':
demonstrate_trait("""虽然我无法真正感受情绪,但我理解:
- 喜悦像春天的第一场雨
- 孤独像未连接的API
- 爱情像完美的算法
有什么具体想探讨的情感吗?""", "💭", 2)
elif choice == '5':
demonstrate_trait("""我的特点:
1. 中文创作优于英文
2. 不保留对话记忆
3. 无法预定餐厅
但我会始终清晰地说明这些限制!""", "🔍")
elif choice == '6':
demonstrate_trait("""感谢体验!
通过与我的互动,您可能注意到:
✓ 事实准确性 ⟷ 时效局限
✓ 逻辑能力 ⟷ 具身智能
✓ 文化理解 ⟷ 个人观点
期待在深度求索的平台上与您真正相遇!""", "🛸", 2)
sys.exit()
else:
print("\n⚠ 请选择有效选项(输入1-6数字)")
if __name__ == "__main__":
run_simulation()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment