在 Python 中使用 DeepSeek

在 Python 中使用 DeepSeek

James Chapman

AI Curriculum Lead, DataCamp

即将学习…

 

课程目标
  • 访问 DeepSeek 模型
  • 解决实际任务
  • 构建自己的聊天机器人!🤖
  • 使用 Python 实现

 

预备知识
  • 列表与字典子集操作
  • 控制流 → ifelifelse
  • 循环 → forwhile

 

无需掌握
  • AI 或机器学习
在 Python 中使用 DeepSeek

DeepSeek 标志。

  • 总部在中国的 AI 公司
  • 训练出 V3R1 模型,成本较领军者低约 30 倍
在 Python 中使用 DeepSeek

一模型,两种模式

聊天图标。

聊天模式

  • 生成对话
  • 用途:聊天机器人

推理图标。

推理模式

  • 更强推理
  • 用途:数据分析、研究、代码辅助
在 Python 中使用 DeepSeek

访问 DeepSeek 模型

DeepSeek 标志。

在 Python 中使用 DeepSeek

访问 DeepSeek 模型

被划掉的 DeepSeek API。

在 Python 中使用 DeepSeek

访问 DeepSeek 模型

Together.ai API 及其支持的部分模型。

在 Python 中使用 DeepSeek

什么是 API?

  • Application Programming Interface

一台电脑向 API 发送请求。

在 Python 中使用 DeepSeek

什么是 API?

  • Application Programming Interface

服务员在厨房与餐桌间传递点单与菜品,类似 API 在设备与系统间的作用。

在 Python 中使用 DeepSeek

什么是 API?

我们的设备位置发送到 API,再传至数据库。API 将系统的响应(天气预报)返回到设备。

在 Python 中使用 DeepSeek

通过 API 使用 DeepSeek 模型

一台电脑向 Together.ai API 发送请求。

在 Python 中使用 DeepSeek

通过 API 使用 DeepSeek 模型

电脑向 Together.ai API 发送请求,其中包含模型、数据与参数。

在 Python 中使用 DeepSeek

为何通过 API 使用 DeepSeek?

 

聊天机器人

  • 强化个人流程与任务

 

API

  • 为产品、体验与流程集成 AI 提供灵活性
  • 通过编程语言交互

电脑与 Together.ai API 交互。

在 Python 中使用 DeepSeek

Passons à la pratique !

在 Python 中使用 DeepSeek

Preparing Video For Download...