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'))

查看效果

相关推荐
深蓝AI7 小时前
桌面 Agent 缺的不是视觉:Vercel 开源 agent-desktop,用无障碍树 ref 替代截图坐标
人工智能·程序员
高晶12 小时前
SPMI 控制器 RTL 设计与验证新手入门
设计模式·程序员·架构
kyriewen13 小时前
我验了 7 种 sticky 失效说法:3 种根本不成立
前端·javascript·程序员
深蓝AI18 小时前
编码 Agent 的界面味靠提示词压不住:Impeccable 用无模型规则拦同一套模板
前端·程序员
Fox爱分享18 小时前
都问程序员双十一买什么,我的答案一定是这块专业编程显示器
后端·程序员·ai编程
SimonKing20 小时前
素笺( local-notes)全面优化,新增功能体验不一样的笔记
java·后端·程序员
codigger21 小时前
Redis 为什么快?把 "存内存" 这句话拆开看
redis·后端·性能优化·程序员
狂师1 天前
GitHub 上最值得装的 8 个 Agent Skill 仓库,亲测好用!
程序员·github·ai编程
kyriewen1 天前
我测了 6 种防请求竞态的写法:只有 1 种真能打
前端·javascript·程序员
前端小万2 天前
用"道法术器"重构你和 AI 的协作方式
前端·人工智能·程序员