HenriSchulte / StardewGPT

MIT License
12 stars 0 forks source link

Request Not Being Completed #2

Closed Hazzzamo987 closed 1 year ago

Hazzzamo987 commented 1 year ago

When attempting to middle-click and start conversation I get the "hello." prompt from the NPC but when typing any reponse SMAPI returns this:

assistant (Linus): Hello. user (Xavier): Hello [StardewGPT] Creating request with content {"model":"gpt-3.5-turbo","messages":[{"role":"system","content":"You are Linus from Stardew Valley, who is speaking with the farmer, Xavier. You must respond as Linus at all times! Linus is a shy, positive adult. Linus and Xavier are acquaintances. The time is 6:20 on Monday, the 1 of spring, 1 years after Xavier moved to the valley. Every message from you ends with an emotion token, e.g. $k. Tokens are $k (neutral), $h (happy), $s (sad), $l (love), and $a (angry).","name":"system"},{"role":"assistant","content":"Hello.","name":"Linus"},{"role":"user","content":"Hello","name":"Xavier"}],"temperature":0.7,"max_tokens":300,"stop":null} [StardewGPT] Making request to https://api.openai.com/v1/chat/completions [StardewGPT] Received response with status code Unauthorized

I have followed the steps and have created and environment variable under the "System variables" named OPENAI_API_KEY and then pasted my API key in "variable value."

I also double checked my account and can still have conversations with ChatGPT in browser.

My API page on OpenAI lists the API key as never being accessed so I'm unsure as to why I am unable to fulfil the request from StardewGPT, any help is greatly appreciated. Looking forward to trying this out and thanks for the work you put into this!

Hazzzamo987 commented 1 year ago

...I may have typed the variable in the wrong section. I'm trying it under the user variable like the instruction said. Will report back :P

Hazzzamo987 commented 1 year ago

That fixed the issue I was having. Now I am receiving the "TooManyRequests" response: [StardewGPT] Making request to https://api.openai.com/v1/chat/completions [StardewGPT] Received response with status code TooManyRequests

Any ideas?

Hazzzamo987 commented 1 year ago

Fixed!