Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neoean/chatgpt-web-go

A golang service for chatgpt application
https://github.com/neoean/chatgpt-web-go

chatgpt chatgpt-api chatgpt-app golang

Last synced: about 1 month ago
JSON representation

A golang service for chatgpt application

Awesome Lists containing this project

README

        


icon

ChatGPT Web Go

A commercially-viable ChatGpt web application built with Go.

可部署商业化的 ChatGpt 网页应用。

💡 本项目是后端服务,前端对应的项目是:[79E/ChatGPT-Web](https://github.com/79E/ChatGPT-Web/)

[提交问题 Issues](https://github.com/heimeropen/chatgpt-web-go/issues)

## 交流群


chatgpt-web-go

## 主要功能
#### 包括但不限于:
- 后台管理系统,可对用户,Token,商品,卡密等进行管理
- 精心设计的 UI,响应式设计
- 极快的首屏加载速度(~100kb)
- 支持Midjourney绘画和DALL·E模型绘画,GPT4等应用
- 海量的内置 prompt 列表,来自[中文](https://github.com/PlexPt/awesome-chatgpt-prompts-zh)和[英文](https://github.com/f/awesome-chatgpt-prompts)
- 一键导出聊天记录,完整的 Markdown 支持
- 支持自定义API地址(如:[openAI](https://api.openai.com) / [API2D](https://api2d.com/r/192767))

#### TODO:
- [x] API Key 功能实现
- [x] API Proxy 代理
- [ ] 绘画功能
- [ ] 思维导图功能
- [ ] 支付功能完善
- [ ] server端渲染模式支持
- [ ] Docker 支持

## 本地启动
**0.环境要求准备**
- golang1.18
- mysql 5.7+
- redis
- goland

**1.先 `Fork` 本项目,然后克隆到本地。**
```
建议目录 ~/go/src/github.com/heimeropen/
git clone https://github.com/heimeropen/chatgpt-web-go.git
```

**2.导入sql**
```
# sql文件
./model/sql/chatgpt.sql
```

**3.配置文件**
在 ./config 目录下新建文件 dev.yml 内容如下:
(配置内容需要更具自己环境更改)
```
port: 8899

db:
type: mysql
host: 127.0.0.1:3306
user: root
password: 123456
name: chatgpt_web_go

redis:
addr: 127.0.0.1:6379

gpt:
proxy: # 代理支持 socks5h://x.x.x.x 或者 http://x.x.x.x

emailServer:
host:
port:
senderName:
user:
password:
```

**4.运行**
```
用goland打开项目
启动main函数:
./cmd/server/main.go
```

**前端服务**
```
前端服务安装参考:
https://github.com/79E/ChatGpt-Web/blob/master/README.md

前端项目需要修改配置文件 .env.development, 指向本地服务端:
VITE_APP_REQUEST_HOST=http://127.0.0.1:8899
```

### 页面截图

![cover](https://files.catbox.moe/tp963e.png)
![cover](https://files.catbox.moe/y5avbx.png)
![cover](https://files.catbox.moe/k16jsz.png)
![cover](https://files.catbox.moe/8o5oja.png)

## 📋 开源协议

[![License MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://github.com/79E/ChatGpt-Web/blob/master/license)