Key Changes: - **Client Initialization**: Updated the initialization to use `OpenAI` client and pass the API key directly. - **Method Call Updates**: Changed `openai.Embedding.create` to `self.client.embeddings.create`. - **Example Update**: Updated the example usage in the docstring to reflect the new way of initializing the client. - **Accessing Embedding Data**: Directly accessed the `embedding` attribute of the `response.data` elements instead of treating `response` as a dictionary. - **Removed Dictionary Access**: Removed the subscripting of the response object and used attribute access instead. https://github.com/openai/openai-python/discussions/742