Skip to content

[bug] Connection Timeout Error Leading to Service Crash When Using ai generate code Feature #217

Open

Description

@swk777

Steps to Reproduce
1. click the "edit cell using ai" button
2. fill in the prompt.
3. click the "generate" button.

Screenshot 2024-08-26 at 15 49 57

Activity

  1. benjreinhart commented on Aug 27, 2024

    @benjreinhart
    Contributor

    I think we saw something similar when a user did not have access to the model. Is it possible your API key does not permit access to chatgpt-4o-latest? cc @nichochar who I think saw this before.

  2. nichochar commented on Aug 27, 2024

    @nichochar
    Contributor

    No, I have not seen timeouts like this before. What we saw in the past was a "This model is not available for your account" error.

    This looks suspiciously like an issue on the openAI side, especially given what I see on https://status.openai.com:
    CleanShot 2024-08-27 at 10 06 30

    @swk777 can you try again, and maybe also try a different model (you can switch to gpt-4o for example in the settings), and confirm that this is still an issue?

  3. swk777 commented on Aug 30, 2024

    @swk777
    ContributorAuthor

    I suppose the issue isn’t related to the OpenAI side. The timeout occurs when accessing openai.com, and the exception is thrown from generateText due to this, as there’s no protection against it in the code snippet shown.
    Screenshot 2024-08-30 at 13 40 58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions