Coder Social home page Coder Social logo

nooqta / chatgpt-kodyfire Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 0.0 1.37 MB

Interact with chatGPT assistant on the terminal and save the conversation to text, markdown, mp3 and more

License: MIT License

TypeScript 100.00%
chatgpt chatgpt-api openai typescript kodyfire text-to-speech

chatgpt-kodyfire's Introduction

ChatGPT-kodyfire

Version Documentation License: MIT

Interact with the unofficial ChatGPT API chatbot and export the conversation to Markdown, Text, MP3 and more using Kodyfire.

Requirements

  1. kodyfire-cli to be installed
npm install -g kodyfire-cli
  1. Node version >= 18
  2. OPENAI_API_KEY in your .env file. head over to Openai to create a key if don't have one.
  3. TTS requires that you are authenticated using gcloud. You'll need a Google Cloud project with Text-To-Speech API enabled. Google Text-To-Speech guide

Install

npm i chatgpt-kodyfire

Usage

In order to generate your exports, run the generate command. As an example, run the following command from your terminal:

kody generate chatgpt:md topic-no-space

Available concepts

md

Initiate a new chat session and saves the output to an md file.

Usage
kody g chatgpt:md topic

text

Initiate a new chat session and saves the output to a text file.

Usage
kody g chatgpt:text topic

tts

Initiate a new chat session, save and reads out the response using Google Text-to-speech. The output is also saved to a text file. Requires a google cloud project with the text-to-speech API enabled. Also You need to login using the google cli gcloud auth application-default login

Usage
kody g chatgpt:tts topic
Arguments
  • kody string - The name of the kody. chatgpt in our case. You can have multiple kodies installed. To list your installed kodies with your project run kody list
  • concept string - The name of the concept you want to execute. To list the concepts of your installed kody (chatgpt), run kody list chatgpt
  • topic string - The topic question to start the conversation with no spaces. This will be used as filename

๐Ÿ“… Future Features

  • Output conversation to a text file
  • Use Google https://github.com/googleapis/nodejs-text-to-speech
  • Generate an audio file using Google text-to-speech api
  • Extract code and save it to [a] file(s)
  • Process input using kody upon request. Append file content to request
  • Generate an image using Dalle| other and a description provided by chatgpt
  • Generate a video using Synthesia API and Chatgpt
  • Output conversation to Excel or CSV
  • Live run code and feedback output back to Chatgpt

Author

Anis Marrouchi

๐Ÿค Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a โญ๏ธ if this project helped you!

Credits

๐Ÿ“ License

Copyright ยฉ 2022 Anis Marrouchi.

This project is MIT licensed.


This README was generated with โค๏ธ by readme-kodyfire

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.