Skip to content

proarea/openai_gadget

Repository files navigation


OpenAI Gadget


Explore the potential of OpenAI models with our repository of examples showcasing use cases. Our examples highlight the diverse ways in which OpenAI models can be applied. Discover the limitations and benefits of these models and how they can be used to solve real-world problems.

Summary

Getting Started

Create .env file in the root of repository and add a single key-value pair with OPENAI_TOKEN as a key and your OpenAI token as a value:

OPENAI_TOKEN="YOUR_OPENAI_TOKEN"

Then, generate environment files using build_runner:

flutter pub run build_runner build

After that, run the project on any available platform 🎉

flutter run

Specification

The project has a few demonstrations of OpenAI usages in mobile applications.

Project uses:

Basics

In addition to basic localization feature, the application has an ability to change the OpenAI text model, that will be used across the app.

Demo: Simple chat

This page demostrates an ability to create a simple chat to interact with user.
It is possible to send a message and get a response from OpenAI bot.
Application is not sending a full conversation to OpenAI, so that the text model is not aware of the context of the conversation.

Demo: Motivationals

This page demostrates an ability to create a unique motivational message for the user.
It is possible to generate motivational text and copy it to the clipboard.
Such messages might be used is a certain place on user dashboard in real applications.

This demo is language-dependent, meaning that application is asking OpenAI text model to respond using the language that is currently used in application.

About

Explore the potential of OpenAI models with our repository of examples showcasing use cases.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published