mirror of
https://github.com/zeke-chin/cursor-api.git
synced 2025-09-27 12:02:18 +08:00
整理代码
This commit is contained in:
@@ -16,26 +16,27 @@
|
|||||||
- 接口地址:`http://localhost:3000/v1/chat/completions`
|
- 接口地址:`http://localhost:3000/v1/chat/completions`
|
||||||
- 请求方法:POST
|
- 请求方法:POST
|
||||||
- 认证方式:Bearer Token(使用 WorkosCursorSessionToken 的值,支持英文逗号分隔的key入参)
|
- 认证方式:Bearer Token(使用 WorkosCursorSessionToken 的值,支持英文逗号分隔的key入参)
|
||||||
|
- 请求格式和响应格式参考openai
|
||||||
### 请求格式和响应格式参考openai
|
|
||||||
|
|
||||||
|
|
||||||
## 快速开始
|
## 快速开始
|
||||||
|
```
|
||||||
|
docker run xxxx -p 3000:3000 ghcr.io/xxxx/rs-capi:latest
|
||||||
|
```
|
||||||
|
|
||||||
1. 克隆项目
|
docker-compose
|
||||||
- git clone https://github.com/waitkafuka/cursor-api.git
|
```
|
||||||
- cd cursor-api
|
services:
|
||||||
2. 安装依赖
|
rs-capi:
|
||||||
- yarn
|
image: ghcr.io/xxxx/rs-capi:latest
|
||||||
3. 启动服务
|
ports:
|
||||||
- yarn dev(开发环境)
|
- 3000:3000
|
||||||
- yarn start(生产环境方式一)
|
```
|
||||||
- pm2 start ecosystem.config.js(生产环境方式二)
|
|
||||||
|
|
||||||
## 注意事项
|
## 注意事项
|
||||||
|
|
||||||
- 请妥善保管您的 WorkosCursorSessionToken,不要泄露给他人
|
- 请妥善保管您的 WorkosCursorSessionToken,不要泄露给他人
|
||||||
- 本项目仅供学习研究使用,请遵守 Cursor 的使用条款
|
- 本项目仅供学习研究使用,请遵守 Cursor 的使用条款
|
||||||
|
- 目前只完成rs-capi的开发,go 未实现
|
||||||
|
|
||||||
## 原始项目
|
## 原始项目
|
||||||
|
|
Reference in New Issue
Block a user