Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/soulteary/docker-chatgpt

< 10MB, One-click self-hosted ChatGPT, allowing access to various data sources and non-OpenAI models.
https://github.com/soulteary/docker-chatgpt

chatgpt chatgpt-app chatgpt-client chatgpt-plugins docker-chatgpt flagstudio-api midjourney-api midjourney-api-bot openai openai-chatgpt self-hosted

Last synced: 11 days ago
JSON representation

< 10MB, One-click self-hosted ChatGPT, allowing access to various data sources and non-OpenAI models.

Awesome Lists containing this project

README

        

# Docker ChatGPT


ENGLISH | δΈ­ζ–‡ζ–‡ζ‘£

![](./.github/preview.jpg)

One-click local version of ChatGPT, allowing access to various data sources and non-OpenAI models.

## Key features

- Privacy is in your hands, no stats report.
- Client is Blazing fast.
- Allow you add any custom data source, data types.
- Consistent with the official function interaction.

## Usage Example

Check the [example directory](./examples/), choose the right configuration and use.

- [01.use-OpenAI-API](./examples/01.use-OpenAI-API/)
- [02.use-Private-MidJourney-API](./examples/02.use-Private-MidJourney-API/)
- [03.use-FlagStudio-API](./examples/03.use-FlagStudio-API/)
- [04.use-Newlook-UI](./examples/04.use-Newlook-UI/)
- [05.use-custom-model-list](./examples/05.use-custom-model-list/)
- [06.use-plugin](./examples/06.use-plugin/)

## Screenshots

Conversation with the image.Conversation with the plugin.

Customize the Model Switcher.App Settings.

## Quick Overview

1. Download the project, or select the [appropriate example](./examples/) configuration file to get started. ( eg: [examples/01.use-OpenAI-API/docker-compose.yml](examples/01.use-OpenAI-API/docker-compose.yml) )

```bash
# download the latest version
git clone https://github.com/soulteary/docker-chatgpt.git
# or use zipball
wget https://github.com/soulteary/docker-chatgpt/archive/refs/heads/main.zip
```

2. Update the configuration file according to your actual situation.

```yaml
OPENAI_API_KEY: "sk-......"
# If your network is not directly accessible OpenAI API, enable proxy and set you own proxy server addr.
# OPENAI_API_PROXY_ENABLE: "on"
# OPENAI_API_PROXY_ADDR: "http://127.0.0.1:1234"
```

3. Use docker to launch the project.

```bash
docker compose up
# or run in the daemon mode
docker compose up -d
```

Open your browser, visit `http://localhost:8090`, and enjoy.

## How to Upgrade

**The Client will be updated along with the project to keep it consistent with the officially supported functions.**

You can update the project by updating the mirror version used in this repository.

```bash
# x86_64
docker pull soulteary/chatgpt
# Mac M1/M2
docker pull soulteary/docker-chatgpt:arm64
```

**Backend services will continue to complete and support new data source types.**

You can download the latest version of the automatically built image by using the following command:

```bash
docker pull soulteary/sparrow
# or use the latest version
docker pull soulteary/sparrow:v0.9.2
```

Then, restart the project with `docker compose down && docker compose up -d` to complete the upgrade.

For more advanced usage, and previous practices, such as searching various vertical websites through it, using MidJoruney to draw pictures, you can refer to the video in the [Sparrow project](https://github.com/soulteary/sparrow) documentation.

Welcome to submit your code in the project to support your data type.

## Performance

The reason for the good experience of the project is because it is very fast and has a very good score.

![](.github/screenshots/perf.png)

In addition, the daily operation of the program as a service only requires about 10MB of hard disk space, about 10MB of content, and about 1% of CPU resources.

## About Private

The project **does not need** to connect to **any external network** except for the backend service address that will be connected in the configuration.

You can prohibit the privacy leakage you are worried about by setting firewall rules or cloud server export access rules.

This does not affect the use of the program as it does not require an additional network connection.

## Credits

- Backend: ChatGPT Style client-compatible Backend Server, open source implementation. [soulteary/sparrow](https://github.com/soulteary/sparrow)

## License

[WTFPL license](./LICENSE)