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