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

查看效果

相关推荐
wing981 小时前
通往全干之路之:被迫成为全栈
前端·后端·程序员
Hilaku2 小时前
为什么很多人觉得前端很简单?
前端·javascript·程序员
不简说3 小时前
JS 代码技巧 vol.6 — 20 个性能优化野路子,从渲染到网络全栈提速
前端·javascript·程序员
SimonKing3 小时前
阿里要求全员卸载 Claude Code:事件始末与深层逻辑
java·后端·程序员
不简说1 天前
JS 代码技巧 vol.5 — 10 个错误处理套路,从 try/catch 到 Error Boundary
前端·javascript·程序员
Larcher2 天前
当 AI 学会写代码:一个自动生成 React 项目的 Agent 实战
人工智能·设计模式·程序员
码栈研说2 天前
Go 语言大白话入门 7 - 函数:把重复代码收起来
后端·程序员
金銀銅鐵2 天前
[Python] 为 Vole 机器语言实现图形化界面
python·程序员
Sam_Deep_Thinking2 天前
DDD里的领域服务,到底什么时候该用?
程序员·架构·系统架构·ddd