Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/poordeveloper/chatgpt-app

Cross-platform ChatGPT App and more
https://github.com/poordeveloper/chatgpt-app

chatgpt rust tauri vue

Last synced: 29 days ago
JSON representation

Cross-platform ChatGPT App and more

Awesome Lists containing this project

README

        


icon

A ChatGPT App for all platforms

Built with Rust + Tauri + Vue + Axum

![play](https://user-images.githubusercontent.com/1399893/236070870-40443458-687b-4532-abc9-5b2265a298d7.gif)

![cover](./docs/images/screenshot.png)

# Prerequisite
- [nodejs](https://nodejs.org/)
- [pnpm](https://pnpm.io/)
- [rust](https://rustup.rs/)
- [Android / iOS sdk](https://next--tauri.netlify.app/next/guides/getting-started/prerequisites/)

# Run Desktop

`pnpm tauri dev`

![desktop](docs/images/desktop.png)

# Run Web

```
# run backend
cargo run --bin server
# start frontend dev
pnpm dev
```

## Environment Variables (for web backend)

### `OPENAI_API_KEY` (required)
Your openai api key.

### `PROXY`
socks / https / http proxy server if you have problem to access OpenAI api server directly. e.g.
`socks5://myusername:mypassword@localhost:1080`

### `API_REVERSE_PROXY`
https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy

### `AUTH_SECRET_KEY`
Key used to access your web

### `OPENAI_API_MODEL`
Use `gpt-3.5-turbo` by default

### `TIMEOUT_MS`
Timeout of OpenAI api request

# Run Android / iOS

```
pnpm tauri ios dev
```

![ios](https://user-images.githubusercontent.com/1399893/236110775-2cea0ff9-f72f-456c-a5f8-56bf2ce85627.png)

# Thanks
- The initial frontend code was copied from [Chanzhaoyu/chatgpt-web](https://github.com/Chanzhaoyu/chatgpt-web)
- Inspired by [Awesome ChatGPT Prompts](https://github.com/f/awesome-chatgpt-prompts) and [lencx/ChatGPT](https://github.com/lencx/ChatGPT)