pedrojlazevedo / twitch-chatgpt

ChatGPT Implementation for Twitch Streamers
67 stars 1.63k forks source link

Bot return HTML when "/" is in prompt #16

Closed GMib closed 8 months ago

GMib commented 1 year ago
[23:45] GMib: !se tu peux me donner la vitesse en km/h ?
[23:45] StreamElements: <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Error</title></head><body><pre>Cannot GET /gpt/GMib:tu+peux+me+donner+la+vitesse+en+km/h+</pre></body></html>
GET/gpt/GMib:tu+peux+me+donner+la+vitesse+de+la+lumiere+en+km/h+
 Request Headers

{
  "accept-encoding": "gzip, deflate",
  "content-length": "0",
  "host": "****",
  "user-agent": "StreamElements Bot",
  "x-amzn-trace-id": "Root=1-647bb8b3-670f8a7407751ce62011d55b;Parent=c49ea4fbe1d23d2d;Sampled=1;Lineage=e7d10489:0",
  "x-forwarded-for": "107.178.237.80",
  "x-forwarded-port": "443",
  "x-forwarded-proto": "https",
  "x-streamelements-channel": "633aecf6d1a1a503a545bf8b"
}

2023-06-04 00:03:31.995: GPT_MODE is CHAT
History length is 10
OpenAI API Key:***
2023-06-04 00:03:32.037: Reading context file and adding it as system level message for the agent.
404 12:03:32.077 (1.084s)
 Response Headers
 Response Payload

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /gpt/GMib:tu+peux+me+donner+la+vitesse+de+la+lumiere+en+km/h+</pre>
</body>
</html>

i use command : $(urlfetch https://your-cyclic-url.app/gpt/"${user}:${queryescape ${1:}}")

vanyaindigo commented 1 year ago

Same issue here with SE

pedrojlazevedo commented 1 year ago

Interesting.

I will try to create a SE account and test myself a possible solution.