Code Monkey home page Code Monkey logo

krishnagpt's Introduction

KrishnaGPT SwiftUI iOS App

Krishna GPT: This SwiftUI MVVM based app, influenced by the teachings of the Bhagavad Gita, provides answers with a spiritual perspective to help you uncover hidden truths. Get your answers in 6 different languages English, Hindi, French, German, Mandarin and Spanish.

This project offers an AI-powered online Bhagavad Gita experience. Based on the 18 chapters and 700 shlokas, it provides moral, strength, discipline, and spiritual guidance to help alleviate Arjuna's troubles.

Check Out app video on YouTube: https://www.youtube.com/shorts/3f2n_mS1DTs

UPDATE

It's using Official ChatGPT API endpoints with gpt-3.5-turbo model

Supported Platforms

  • iOS 15 and above

Requierements

  • Xcode 14
  • Register for API key from OpenAI
  • Create API Key
  • Paste API key in KrishnaGPTApp file where the ChatGPTAPI instance is declared
let api = ChatGPTAPI(apiKey: "API_KEY")

optionally, you can provide the system prompt, temperature, and model. Default values for these parameters are:

public init(apiKey: String,
        model: String = "gpt-3.5-turbo",
        systemPrompt: String = "You are a helpful assistant",
        temperature: Double = 0.5)

To learn more about those parameters, you can visit the official ChatGPT API documentation and ChatGPT API Introduction Page

How it works

This initiative employs the OpenAI GPT-3 API, specifically the text-davinci-003, in a streaming manner. It formulates a prompt based on the user's input and the desired format, then forwards it to the GPT-3 API. The received response is then streamed back to the app.

krishnagpt's People

Contributors

saurabhdave avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

krishnagpt's Issues

Request for context history implementation

Hi Saurab,
Hope this message finds you well. I would like to know how did you make the app remember the history of previously asked questions and answer back. I am struggling to understand that. Can you please give me some explaination for the same.

         Thanks

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.