Error in notebook. Course: "Building Applications with Vector Databases" Lesson 1 - Semantic Search

Getting error while executing this part of the code in the notebook:
pinecone.create_index(name=INDEX_NAME,
dimension=model.get_sentence_embedding_dimension(),
metric=‘cosine’,
spec=ServerlessSpec(cloud=‘aws’, region=‘us-west-2’))

TypeError: IndexModel._from_openapi_data() missing 5 required positional arguments: ‘name’, ‘dimension’, ‘metric’, ‘host’, and ‘spec’

Please see this thread: