ChatGPT HTML - Using OpenAI APIs and AWS Polly speech (Optional)
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
- Add your OpenAI API key and AWS Keys to the "OPENAI_API_KEY" variable and (optinally) "AWS.config.credentials" in config.json.
- 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.
