Created by Chenran([email protected])
Refactored by Isaac Chan ([email protected])
This is a simple version of chatgpt in flutter, using your own API key. With this app, you can chat in app with chatgpt.
The app includes the following features:
- Chat with ChatGPT using the OpenAI API
- Display chat history
- Add new conversations
- Rename existing conversations
- Delete conversations
- text field multiline
- api key storage
- conversations auto save and load
- selectable conversation text
- auto scroll to bottom during message
- focus on text field after send
- loading spinner
- json serializable
- auto rename conversation topic
- scroll to bottom button
- gpt model changable (New!)
- support stream result (New!)
Before you start, make sure you have the following:
- Flutter installed on your machine
- An API key for the OpenAI ChatGPT language model. You can apply for an API key here.
Clone the repository to your local machine. Run the app on your device or emulator using flutter run. You will also need the Xcode to simulate the ios environment.
''' flutter run '''
[o] fix Chinese character errors [o] when click send, messages can be pushed [o] for Desktop, enter to send message [o] for Desktop, shift+enter to newline [o] use stream to handle returned data [ ] other features than chatting... use your creative mind [ ] deploy to app store
(last updated 2023-03-07)
dart run build_runner build
You can use this project for your own further development! Happy developing and chatting!
The OpenAI API for providing the language model used in the app. The Flutter framework for making it easy to build beautiful and fast mobile apps. Credits to Chenran([email protected]).