Skip to content

servingbaby/chatgpt-html

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ChatGPT HTML - Using OpenAI APIs and AWS Polly speech (Optional)

Screenshot_new

v.0.9.3.beta - Added External Data (News, Markets, Weather, Date), touch voice speak and response.

Has GPT-4 Support (Needs Testing)

This allows you to easily interact with the OpenAI API and convert the response to speech using Amazon Polly's Text-to-Speech service.

Getting Started

  1. Add your OpenAI API key and AWS Keys to the "OPENAI_API_KEY" variable and (optinally) "AWS.config.credentials" in config.json.
  2. Open chatgpt.html and have fun!

Features

  • Model Selection, Multiple languages, and Print Conversation.
  • Convert to Speech using Amazon Polly's Text-to-Speech service.
    • Auto Speak! Now avail w00t w00t
  • Error handling for issues that may occur during the API call and speech conversion.

Bugs

  • actively on the look out for these
  • Response with "usage":{"completion_tokens":420} causes weird display bug on-screen.

Grabbed the inital idea from here https://www.codeproject.com/Articles/5350454/Chat-GPT-in-JavaScript
Complete overhaul of the code base.