How can I call open AI model GPT3.5 within note book using python

Himali_K
New Contributor II
 

dbrx_user
Databricks Partner

Use the OpenAI API. They have a comprehensive guide with lots of example code here: Quickstart tutorial - OpenAI API
Just remember to save your API keys as databricks secrets and access them wit dbutils.secrets - Secret management | Databricks on AWS