Skip to content

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

Description

@jimyu0217

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions