diff --git a/index.html b/index.html index 95c1949..65b08ac 100644 --- a/index.html +++ b/index.html @@ -71,12 +71,39 @@
Add AI capabilities to any website with just one line of code. The floating "uncloseai." button appears automatically, providing access to Hermes AI, text-to-speech, translation, and more.
Add this script tag to your HTML - that's it! The floating AI button appears automatically:
<script src="https://uncloseai.com/uncloseai.js" type="module"></script>
The demo page includes configuration options, embedded widgets, custom implementations, direct API usage, and more advanced features.
To install the OpenAI package for Python, use pip:
pip
pip install openai
To install the OpenAI package for Node.js, you can use npm in your package.json:
npm
package.json
{ "dependencies": { @@ -133,8 +160,8 @@ npm install Using the Hermes AI Model - Python Example - Non-Streaming + Python Examples + Python Non-Streaming # Python Fizzbuzz Example from openai import OpenAI @@ -155,7 +182,7 @@ response = client.chat.completions.create( print(response.choices[0].message.content) - Streaming + Python Streaming # Streaming response in Python from openai import OpenAI @@ -181,7 +208,7 @@ for chunk in response: Node.js Example - Non-Streaming + Node.js Non-Streaming const OpenAI = require('openai'); const client = new OpenAI({ @@ -211,7 +238,7 @@ async function getResponse() { getResponse(); - Streaming + Node.js Streaming const OpenAI = require('openai'); @@ -248,7 +275,7 @@ streamResponse(); Using the Text To Speech Endpoint - Python Example + Python TTS Example # TTS Speech Example in Python import openai @@ -266,7 +293,7 @@ with client.audio.speech.with_streaming_response.create( response.stream_to_file("speech.mp3") - Node.js Example + Node.js TTS Example const OpenAI = require('openai'); const client = new OpenAI({
npm install
# Python Fizzbuzz Example from openai import OpenAI @@ -155,7 +182,7 @@ response = client.chat.completions.create( print(response.choices[0].message.content)
# Streaming response in Python from openai import OpenAI @@ -181,7 +208,7 @@ for chunk in response:
const OpenAI = require('openai'); const client = new OpenAI({ @@ -211,7 +238,7 @@ async function getResponse() { getResponse();
const OpenAI = require('openai'); @@ -248,7 +275,7 @@ streamResponse();
# TTS Speech Example in Python import openai @@ -266,7 +293,7 @@ with client.audio.speech.with_streaming_response.create( response.stream_to_file("speech.mp3")
const OpenAI = require('openai'); const client = new OpenAI({