Error when trying to run the code cell

You should try the suggestion here
L1-Embeddings-api-intro Error - Short Course Q&A / Understanding and Applying Text Embeddings with… - DeepLearning.AI