from skllm.config import SKLLMConfig
import os
SKLLMConfig.set_openai_key(os.getenv("OPENAI_API_KEY"))
SKLLMConfig.set_openai_org(os.getenv("OpenAI-org"))
3%|▎ | 1/30 [00:09<04:21, 9.00s/it]Could not obtain the completion after 3 retries: `AttributeError :: module 'openai' has no attribute 'ChatCompletion'`
None
Could not extract the label from the completion: 'NoneType' object is not subscriptable
3%|▎ | 1/30 [00:15<07:15, 15.00s/it]
I am running the example code:
I get the following error: