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

查看效果

相关推荐
大模型教程17 小时前
12天带你速通大模型基础应用(一)Prompt提示词工程
程序员·llm·agent
大模型教程21 小时前
12天带你速通大模型基础应用(二)自动化调优Prompt
程序员·llm·agent
AI大模型1 天前
无所不能的Embedding(02) - 词向量三巨头之FastText详解
程序员·llm·agent
SimonKing1 天前
Apache Commons Math3 使用指南:强大的Java数学库
java·后端·程序员
AI大模型1 天前
无所不能的Embedding(03) - word2vec->Doc2vec[PV-DM/PV-DBOW]
程序员·llm·agent
袁煦丞1 天前
群晖NAS FTP远程文件仓库全球访问:cpolar内网穿透实验室第524个成功挑战
前端·程序员·远程工作
堆栈future2 天前
我的个人网站上线了,AI再一次让我站起来了
程序员·llm·aigc
大模型教程2 天前
AI Agent 发展趋势与架构演进
程序员·llm·agent
AI大模型2 天前
无所不能的Embedding(01) - 词向量三巨头之Word2vec模型详解&代码实现
程序员·llm·agent