Blogging my journey of learning Full stack devlopment and creating an App to get a hands on knowledge.

Search This Blog

Wednesday, 7 June 2023

Building a Recipe Creator App with Flutter and OpenAI ChatGPT API

The app will allow users to enter ingredients in the textbox and they will get the personalized recipe recommendation based on their inputs through the capabilities of OpenAI .

Step 1: Create a new Flutter project

Step 2: Add Dependencies

dependencies:

  http: ^0.13.0

Step 3: Design the App UI and  Integrate OpenAI API with Flutter UI





Preview of the App:



Check out the Git Code here

Read More

Friday, 2 June 2023

Building a Travel Itinerary App with Flutter and OpenAI ChatGPT

In this technical blog post, we will walk through the process of creating a travel itinerary app using Flutter and integrating the OpenAI ChatGPT API. By leveraging the cross-platform capabilities of Flutter and the conversational intelligence of ChatGPT, we can develop an app that assists users in planning their trips and generates personalized itineraries based on their preferences.

Step 1: Setting Up the Development Environment

Install Flutter: Follow the official Flutter installation guide for your operating system.

Set Up an Editor: Choose an IDE or text editor for Flutter development, such as Visual Studio Code or Android Studio, and install the necessary plugins and extensions.

Step 2: Creating a New Flutter Project

Open your terminal or command prompt and run the command flutter create your_app_name to create a new Flutter project.

Step 3: Adding Dependencies

  chat_gpt_sdk: ^2.1.7

Step 4: Designing the User Interface and Integrating OpenAI ChatGPT API

I developed a basic user interface using the Dart language to gather user input. The input will be used as a variable in the prompt for Chat GPT. Upon submission, the UI will generate a travel itinerary based on the provided user data.

OpenAI ChatGPT API:

 Create an OpenAI account and obtain an API key for authentication.You can find the API key at here.

Note: No free version of Chat GPT API is available now. However, you can start for free with $5 in free credit that can be used during your first 3 months. Check details here

Chat GPT SDK

There is a SDK wrapper for OpenAI's APIs in Flutter, which assists in seamlessly integrating ChatGPT into your Flutter applications.

Add Chat GPT SDK and import it in your file and use following code to request and get response from Open AI's Chat GPT.


Preview of the App





Check out the Git Code here

Read More

Featured Post

Invoice Portal Project Links

Web App link for Invoice Portal  Invoice Portal App lets an user view and create an Invoice. Features: View the list of Number of Invoices b...

Powered by Blogger.

Popular Posts