ChatGPT.Net icon indicating copy to clipboard operation
ChatGPT.Net copied to clipboard

Response status code does not indicate success: 429 (Too Many Requests).

Open jimyu0217 opened this issue 11 months ago • 1 comments

I had get 429 issue. Anyone can help me?

private bool createChatGptObj() { bool success = false;

        try
        {
            _gptObj = new ChatGpt(_apiKey);
            _gptObj.SetConversations(new List<Net.DTO.ChatGPT.ChatGptConversation>()
            {
                new Net.DTO.ChatGPT.ChatGptConversation(),
            });

            success = true;
        }
        catch(Exception ex)
        {
            MessageBox.Show(ex.Message);
        }

        return success;
    }

    private async void askAndReponse(string question)
    {
        await _gptObj.AskStream(response =>
        {
            this.Invoke(new Action(() =>
            {
                rtbMessage.AppendText(response);
            }));

        }, question);
    }

jimyu0217 avatar Jul 19 '23 03:07 jimyu0217

I encountered this error and it was because I was out of the free trial limits. I fixed this by adding payment options to OpenAI so they could charge me

echeng8 avatar Jul 31 '23 03:07 echeng8