mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-24 11:11:29 +08:00
57 lines
1.7 KiB
Markdown
57 lines
1.7 KiB
Markdown
---
|
||
title: 如何在 cursor 中使用 deepseek-coder
|
||
date: 2024-07-25T00:00:00.000Z
|
||
author: KazooTTT
|
||
type: Post
|
||
status: Draft
|
||
tags:
|
||
- deepseek-coder
|
||
- OpenAI
|
||
- API
|
||
finished: true
|
||
published: true
|
||
category: AI
|
||
slug: using-deepseek-coder-in-cursor
|
||
description: 本文介绍了如何在 Cursor 中添加和使用 DeepSeek-Coder 模型,以及配置相关的 OpenAI API Key 和 Base URL。
|
||
NotionID-notionnext: f759bbe6-aa4b-4317-9695-44927430146b
|
||
link-notionnext: >-
|
||
https://kazoottt.notion.site/cursor-deepseek-coder-f759bbe6aa4b4317969544927430146b
|
||
toAstro: true
|
||
date_created: 2025-01-04T03:44:53.000Z
|
||
date_modified: 2025-02-12T02:52:44.000Z
|
||
---
|
||
|
||
# 如何在 cursor 中使用 deepseek-coder
|
||
|
||
[Cursor](https://www.cursor.com/) 是一款智能代码编辑器,可以帮助用户生成代码、修改 Bug、生成测试等,提高编程效率。
|
||
|
||
可以免费使用,但是具有一定的额度。
|
||
|
||

|
||
|
||
但是它也可以使用自己的 key 和模型具体的操作如下。
|
||
|
||

|
||
|
||
## 1. 添加模型:DeepSeek-Coder
|
||
|
||
在 Cursor 的模型页面,添加新模型,选择 `deepseek-coder`。
|
||
|
||
## 2. 配置 OpenAI API Key
|
||
|
||
在设置中找到 OpenAI API Key 选项,并填写 DeepSeek 提供的 API Key。
|
||
|
||
## 3. 配置 Base URL
|
||
|
||
在设置中找到 `Override OpenAI Base URL` 选项,并填入以下地址:
|
||
|
||
```
|
||
https://api.deepseek.com/v1
|
||
```
|
||
|
||
## 4. 在侧边栏中选择 deepseek-coder
|
||
|
||

|
||
|
||
这样配置就完成了
|