Code Monkey home page Code Monkey logo

chatgptuiapp's Introduction

ChatGPT App

Learning Objective: The purpose of the app is to apply AsyncTask to call Open AI LLM (ChatGPT 3.5 Turbo) model in the background and display response to the Android App. Open AI model used- gpt-3.5-turbo

Steps involved:

  1. Obtain an OpenAI secret key from https://platform.openai.com/api-keys.
  2. Refer https://platform.openai.com/docs/api-reference for the api endpoint you want to use, and do a similar HTTP POST request from the app.
  3. Display the response of the API on UI.

Testing:

  1. Set value for API secret in the MainActivity.java class
  2. If possible, test the app on an android device. You might come across some errors while testing on emulator because of different environment settings.

Screenshots:

Main Activity:

image

Entering a prompt:

image

Response is displayed:

image

chatgptuiapp's People

Contributors

ravirajwadnerkar avatar

Watchers

 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.