How to setup AI on my personal PC

Hello Everyone,

I am doing the AI Python for Beginners in https://www.coursera.org/learn/ai-python-for-beginners/

i am able to do the program in jupeter note, when i try to run these programs on my local PC helper_functions.py have all the errors , it dont find the get_llm_response, ?

can someone help how to execute this in my local PC

my program

from helper_functions import print_llm_response

print_llm_response(“What is the capital of France?”)

Error : File “d:\Coursera\03_AI python for beginners\Files\helper_functions.py”, line 1, in
from openai import AzureOpenAI, DefaultHttpxClient

1 Like

Hello sriramkavuluru.

Well done for trying to run the course code all by yourself, nice initiative! :slight_smile:

My best guess is that in order to do so you would need a OpenAI API key and that this code is meant to be run only within the course itself, so all that work is done previousy with the purpose that learners can focus on the lesson content only.

1 Like

It would help if you post your question in the forum area for that course.

1 Like

I am not involved in that course, but I infer that expression in Python assumes the local presence of the openai library. For example, you would need to download and install into your local environment…

It can become non-trivial to establish and maintain a local environment that mimics the course cloud compute environment. This thread has additional details…

1 Like