#GPT3.5 Api stopped working for me

4 messages · Page 1 of 1 (latest)

stoic oasis
#

Hey,
I am working on this bot for a while and today it suddently stopped while I tried implementing another feature. So I thought that maybe I crashed the code but it seems like my code from 1 week ago also doesnt work anymore. How is this possible? Can someone look over this part of the code (it stops right after this one)
try { const response = await axios.post( this.options.endpoint, { model: this.options.model, messages: promptStr, temperature: this.options.temperature, max_tokens: this.options.max_tokens, top_p: this.options.top_p, frequency_penalty: this.options.frequency_penalty, presence_penalty: this.options.presence_penalty, stream: true, }, { responseType: "stream", headers: { Accept: "text/event-stream", "Content-Type": "application/json", Authorization: Bearer ${oAIKey.key}, }, }, );

I have 0,000 idea why this stopped working.. btw my api key works in another github project but not in mine. so seems like.. idk maybe some node modules changed or something with typescript

#

okay I found out that I suddenly get 401, unauthorized.. how?

#

Okay no there was no 401, sorry. I tried putting a try catch around it but there is legit nothing happening. Not even an error??

pallid jolt
#

How is promptStr formatted?