Coder Social home page Coder Social logo

sheng-di / flutter_chatgpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wewehao/flutter_chatgpt

0.0 0.0 0.0 4.92 MB

Flutter ChatGPT APP. The chatgpt chat app implemented by flutter supports custom modes and contextual continuous dialogue. In addition, it supports admob advertisement configuration, accessing open screen advertisements, interstitial advertisements, Banner advertisements, etc.

License: MIT License

Ruby 1.44% Objective-C 0.04% Kotlin 0.13% Dart 97.96% Swift 0.43%

flutter_chatgpt's Introduction

ChatGPT Application with flutter

ChatGPT has released version 4.0, but it is not fully open. Currently, AI Chat uses the gpt-3.5-turbo model.

Chinese document: Chinese

Software Screenshot

Pure version (no ads)

Advertisement Version

IOS simulator running

Software version

  • Whether to configure infinite number of versions through isInfiniteNumberVersion in lib/utils/Config.dart

  • main branch: Unlimited version, including chatgpt, need to configure openaiKey.

  • admob branch: the version with the number of times you watched ads, including firebase, admob, chatgpt, need the corresponding ad configuration and openaiKey.

At present, Android supports running on a real machine, and IOS has only been run on an emulator. IOS packaging requires a developer account.

Install

flutter

  • 3.* version, AI Chat uses version 3.7.7 when compiling.

ChatGPT Token (required)

  • Configure the token obtained from the openai background to the chatGptToken variable of the lib/utils/Chatgpt.dart file.

admob (ad version)

  • The admob ad is docked, the main branch contains admob, you need to apply for the corresponding ad ID in the admob background, and fill it in the lib/utils/AdCommon.dart file. These include splash ads, interstitial ads, interstitial rewarded ads, and banner ads.
  • Configure admob's APPLICATION_ID to android/app/src/main/AndroidManifest.xml
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="****" />
  • Also configure admob's APPLICATION_ID to ios/Runner/Info.plist
<key>GADApplicationIdentifier</key>
<string>****</string>

firebase (ads version)

  • Configure Android and IOS in the firebase background https://console.firebase.google.com/, Android needs to download google-services.json, IOS needs Download GoogleService-Info.plist
  • google-services.json: android/app/google-services.json
  • GoogleService-Info.plist: ios/Runner/GoogleService-Info.plist

Android packaging and compilation configuration

  • To package and compile, you need to generate the corresponding key first. Here you can go to Google to see the packaging steps.

  • Replace generated jks file to android/app/build_config/build.jks

Edit the packaging configuration signingConfigs in the android/app/build.gradle file, and replace the corresponding file path and password.

signingConfigs {
     release {
         storeFile file("./build_config/build.jks")
         storePassword "123456"
         keyAlias "appKey"
         keyPassword "123456"
     }
}

flutter_chatgpt's People

Contributors

wewehao avatar imfelixng avatar ahua666 avatar cyicz123 avatar xiyaowong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.