DeepSeek免费福利限时开启,AI界的“薅羊毛”机会来了!

作者:京东科技 张新磊

背景

最近一直在关注deepseek的动态,现在看到一则好消息,分享给大家;国家超算中心目前上线了deepseek且免费调用DeepSeek-R1:7B、DeepSeek-R1:14B、DeepSeek-R1:32B三个模型,具体操作如下

操作步骤

  • 通过如下导航栏进入,进行购买
  • 购买完成后,我们点击去使用,获取密钥

测试代码

python 复制代码
import requests
import json

url = "http://activity.scnet.cn:61080/v1/chat/completions"

payload = json.dumps({
  "messages": [
    {
      "role": "user",
      "content": "写一首诗"
    }
  ],
  "stream": True,
  "model": "DeepSeek-R1-Distill-Qwen-32B",  
  "temperature": 0.5,
  "presence_penalty": 0,
  "frequency_penalty": 0,
  "top_p": 1
}, ensure_ascii=False).encode('utf-8')
headers = {
  'Accept': 'application/json, text/event-stream',
  'Accept-Language': 'zh-CN,zh;q=0.9',
  'Authorization': 'Bearer',  # 插入访问密钥
  'Connection': 'keep-alive',
  'Content-Type': 'application/json',
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36',
}

response = requests.request("POST", url, headers=headers, data=payload, stream=True)

for line in response.iter_lines():
    if line:
        print(line.decode('utf-8'))

查看效果

相关推荐
人邮异步社区2 小时前
OpenClaw如何部署?
程序员·大模型·ai智能体·openclaw
刀法如飞15 小时前
Go 字符串查找的 20 种实现方式,用不同思路解决问题
算法·面试·程序员
KaneLogger19 小时前
从装 Skill 到管理工作流:HK-Skills 的第二轮升级
程序员·aigc
魔术师Grace19 小时前
小白也能上手:把 Codex 接到微信里
程序员·aigc
程序员cxuan1 天前
Codex 移动版来了,等得就是这个!
程序员
ikoala1 天前
用了几周明基 RD280UG,我终于明白程序员为什么需要一台“专用显示器”
前端·后端·程序员
kevin酱506791 天前
Hermes Agent 彻底卸载与防止再生完整指南
程序员
DogDaoDao1 天前
【GitHub】NousResearch/Hermes-Agent 深度技术解析:自我进化的AI Agent新范式
人工智能·深度学习·程序员·大模型·github·ai编程·ai agent
阿星做前端1 天前
不想再给ai回复下一步了,于是我给agent装上了一个自动挡
前端·后端·程序员
SimonKing1 天前
Firefox 太卡?换了这浏览器,内存占用直接降了 70%
java·后端·程序员