How to get helper functions on my local system mentioned in AI Python for Beginners course

Thank you very much for the fast response. I understand. I have to modify helper_functions.py using the client definition (that currently is commented)

from openai import OpenAI
openai_api_key = “my API key here”
client = OpenAI(api_key=openai_api_key)

also exchanging

def get_llm_response(prompt): …

using my own api keys. Hope it will work. Thank you very much.

1 Like