English | [简体中文](README-zh-CN.md)

# HaoChat

An unofficial ChatGPT application developed with Flutter.  
If this repository has been helpful to you, please support us by giving it a star!

<img src="https://github.com/conghaonet/hao_chatgpt/raw/master/screenshots/flutter_logo.png" height="40"/>&emsp;&emsp;<img src="https://github.com/conghaonet/hao_chatgpt/raw/master/screenshots/openai_logo.png" height="40"/>

## Supported models
* [gpt-3.5-turbo](https://platform.openai.com/docs/models/gpt-3-5)
* text-davinci-003
* text-curie-001
* text-babbage-001
* text-ada-001

## Supported platforms
* iOS
* Android
* macOS
* Windows
* Linux (untested)

## Setup your OpenAI API key

Create a file named **openai.yaml** in the root directory of the project and fill it with your [**OpenAI API key**](https://beta.openai.com/account/api-keys).
```yaml
# default API key
api_key: 'YOUR-API-KEY'
```
For security reasons, I cannot upload my **openai.yaml**.

## Under development
- [x] GPT-4

## Tips
Set the task or role of the AI in this **System prompt** input field.  
For example: You are a helpful assistant that translates Chinese to English to.

![](https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/setsystem01.jpg) ![](https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/setsystem02.jpg)

## Screenshots
<Table>
    <tr>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/screenshot04.jpg"/>
        </td>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/screenshot03.jpg"/>
        </td>
    </tr>
    <tr>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/screenshot01.jpg"/>
        </td>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/screenshot02.jpg"/>
        </td>
    </tr>
    <tr>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/home.jpg"/>
        </td>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/leftmenu02.jpg"/>
        </td>
    </tr>
    <tr>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/screenshot05.jpg"/>
        </td>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/screenshot06.jpg"/>
        </td>
    </tr>
    <tr>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/gpt35turbo.jpg"/>
        </td>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/nokey.jpg"/>
        </td>
    </tr>
    <tr>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/settings.jpg"/>
        </td>
        <td width="50%">
            <img src="https://github.com/conghaonet/hao_chatgpt/blob/master/screenshots/en/leftmenu01.jpg"/>
        </td>
    </tr>
</Table>
