Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to have a HTML submit form for ChatGPT4?

$
0
0

I can create a html submit form for Google, example:

<form action="https://www.google.com/search" method="get"><input type="text" name="q" placeholder="Search Google"><input type="submit" value="Search"></form>

it works, it is great!

The Question: how can I create the same, for ChatGPT4? (I have a plus subscription)

If I try with something like:

<!DOCTYPE html><html><head><title>Chat with ChatGPT-4</title></head><body><form action="https://chat.openai.com/backend-api/conversation" method="post"><h1>Chat with ChatGPT-4</h1><label for="message">Your message:</label><br><input type="text" id="message" name="message" required><br><input type="submit" value="Send"></form></body></html>

All I get back is a:

{"detail":{"message":"Unauthorized - Access token is missing"}}

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>