Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fastapi-practices/fastapi_chatgpt
使用 FastAPI 构建基于本地离线模型的 ChatGPT API,这意味着无需再使用付费 API KEY,相反,离线模型性能将受本地硬件配置影响
https://github.com/fastapi-practices/fastapi_chatgpt
chatgpt-api fastapi-chatgpt
Last synced: about 1 month ago
JSON representation
使用 FastAPI 构建基于本地离线模型的 ChatGPT API,这意味着无需再使用付费 API KEY,相反,离线模型性能将受本地硬件配置影响
- Host: GitHub
- URL: https://github.com/fastapi-practices/fastapi_chatgpt
- Owner: fastapi-practices
- License: mit
- Created: 2023-11-10T03:15:22.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-03T21:43:59.000Z (8 months ago)
- Last Synced: 2024-05-03T22:40:33.248Z (8 months ago)
- Topics: chatgpt-api, fastapi-chatgpt
- Language: Python
- Homepage:
- Size: 68.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI ChatGPT
> [!TIP]
> 基于 python >= 3.10 开发基于 [ollama](https://github.com/ollama/ollama)
和 [open-interpreter](https://github.com/KillianLucas/open-interpreter) 构建本地离线模型 ChatGPT API## 使用
1. 安装 ollama 应用
2. 安装项目依赖
3. 更新配置文件
4. 访问 http://localhost:8000/api/v1/docs