I have this error when I try to put this code on a simple HTML page:
<iframe
src="https://cdn.jsdelivr.net/npm/@openai/chat-gpt@0.4.4/dist/index.html?apiKey=MY_API_CHATGPT_KEY&model=text-davinci-002&showHeader=true"
style="width: 100%; height: 500px; border: none;"
</iframe>
after trying this one :
<script src="https://cdn.jsdelivr.net/npm/@openai/chat-gpt@0.4.4/dist/index.js"></script>
<script>
const chat = new Chat({
apiKey: 'MY_API_CHATGPT_KEY',
model: 'text-davinci-002',
showHeader: true
});
chat.mount(document.getElementById('chat-container'));
</script>
<div id="chat-container"></div>
Obviously, I changed "MY_API_CHATGPT_KEY" by my personnal key which is working with other plugins.