Hey @comedyshow, I can’t speak to the Pinecone guides or when they’ll be able to be updated, but in the meantime the changes look pretty straightforward.
# old
import openai
openai.api_key = os.environ['OPENAI_API_KEY']
# new
from openai import OpenAI
client = OpenAI(
api_key=os.environ['OPENAI_API_KEY'], # this is also the default, it can be omitted
)
and an API rename: openai.Embedding.create() → client.embeddings.create()