Coder Social home page Coder Social logo

gqadonis / aibridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jhj0517/aibridge

0.0 0.0 0.0 2.09 MB

Open source Flutter project that allows you to use external APIs for AI Chat

License: Apache License 2.0

Ruby 0.73% C++ 6.37% C 0.37% Objective-C 0.01% Dart 85.83% Swift 0.77% HTML 0.97% CMake 4.94%

aibridge's Introduction

AI Bridge

AIBridge is a open-source flutter project that allows you to use external APIs for AI Chat.

ai_bridge.mov

Currently implemented APIs are :

  • ChatGPT
  • PaLM

You can also use the built version directly from Stores :

download on playstore download on appstore

Architecture

diagram

Techs

Tech Usage
Provider pattern Monitor data changes using ChangeNotifier
sqflite Used to store chat data as local data
dio Used for requesting API responses over the network. However, a different built-in package, dart_openai, is specifically used for ChatGPT. Dio is primarily used for PaLM.
dart_openai A built-in package for requesting ChatGPT API responses in Flutter
flutter_image_compress Efficiently reduces image size, which is cost-effective for storing images on the server. Demonstrates efficiency with reductions from 2MB to 95kB, without compromising image quality.
tiktoken A built-in package for counting tokens in ChatGPT
flutter_markdown Enables markdown rendering in chat
intl Used for localization. This project is localized in English, Korean, and Japanese.
flutter_secure_storage Stores API keys securely within the app. This package implements a security algorithm to safeguard API keys.

Flutter environment

This project is built fine with the following environment:

[√] Flutter (Channel stable, 3.13.2, on Microsoft Windows [Version 10.0.19045.3693], locale ko-KR)
    • Flutter version 3.13.2 on channel stable at C:\FlutterSDK\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff5b5b5fa6 (4 months ago), 2023-08-24 08:12:28 -0500
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

License

This project is licensed under the Apache License 2.0.

aibridge's People

Contributors

jhj0517 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.