Skip to content

isaactinghong/flutter_chatgpt_app

 
 

Repository files navigation

Simple Flutter Version ChatGPT

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.

img img img

Features

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!)

Auto Distribution

Getting Started

Prerequisites

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.

Installation

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 '''

TODO

[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)

Json Serializable

dart run build_runner build

License

You can use this project for your own further development! Happy developing and chatting!

Acknowledgments

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]).

About

Simple flutter ChatGPT app using APIKey

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 54.4%
  • C++ 19.6%
  • CMake 15.3%
  • PowerShell 4.8%
  • HTML 1.6%
  • Swift 1.5%
  • Other 2.8%