#My api key is not Working.

1 messages · Page 1 of 1 (latest)

timid sparrow
#

Hi! Firstly, which error are you getting, and secondly, if you will use this approach, everyone can steak your API key, I recommend creating a server to handle chat completions when you are actually publishing this site

hollow scarab
#

Im not into js but this looks weird to me:


a
            headers: {
                "Content-Type": "application/json",
                "Authorization": `Bearer ${API_KEY}`
            },
timid sparrow
hollow scarab
timid sparrow