How to fix "Resource not found" error with gpt-35-turbo in Python

I'M noob 0 Reputation points
2024-12-02T18:37:48.1+00:00

Using gpt-35-turbo to correct automated grammar for part-time work on Windows 7 with Python 3.8. The openai library version in use is 0.27.0, and possible issues have already been checked.

enter image description here enter image description here enter image description here

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,093 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. navba-MSFT 27,550 Reputation points Microsoft Employee Moderator
    2024-12-04T13:07:22.5333333+00:00

    @I'M noob Are you sure you are doing it in new file ? From your error message it still seems like the error is within OpenAiAzure.py.

    • Please try with new file, for example demo.py
    • Paste my above code within this demo.py and execute this.
    • If this fails, follow the below action pla.

    Plan 1:

    I see that you are using a very older version of Python. Please download and install the most recent version of Python 3.13.1 from here: https://www.python.org/downloads/

    .

    .

    Plan 2:

    Add the Python Path and Scripts folder to the System and User environment variable.

    • C:\Users\user\AppData\Local\Programs\Python\Python313.
    • C:\Users\user\AppData\Local\Programs\Python\Python313\Scripts.

    .

    .

    Plan 3:

    Open the CMD prompt and navigate to C:\Users\user\AppData\Local\Programs\Python\Python313

    and run the command: pip install openai

    .

    .

    Plan 4:

    Copy the demo.py code within this folder path C:\Users\user\AppData\Local\Programs\Python\Python313 and run the command: python demo.py

    .

    Hope this helps.

    Hope this helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.