#C# Class dont connect to the api

10 messages · Page 1 of 1 (latest)

placid holly
#

I have a problem linking this class to chatgpt api, i would be pleased if someone helps me.

#

You may only check the method AskChatGPT and the class ChatClient

#

I have entered my api key, obviously im not going to share it, it is not that error

lavish vine
placid holly
#

This line shows on console return "Failed to get a valid response from the ChatGPT service.";

lavish vine
#

Generic error statements are great for consumers but you're a developer I assume. It's important to know what the response is.

placid holly
#

How can i fix it? Im new to API’s

#

Ah, okey