Works for me. Likely a versioning or variable issue. Here are my current versions of anything llama index or openai related:
~/src/camp_researcher main wip !4 ?4 ❯ poetry show | grep "llama\|openai" ✔ 0|PIPE|0 camp-researcher-py3.12
llama-cloud 0.0.13
llama-index 0.10.62
llama-index-agent-openai 0.2.9
llama-index-callbacks-arize-phoenix 0.1.6
llama-index-cli 0.1.13
llama-index-core 0.10.62
llama-index-embeddings-huggingface 0.2.2
llama-index-embeddings-ollama 0.1.3
llama-index-embeddings-openai 0.1.11
llama-index-extractors-entity 0.1.2
llama-index-indices-managed-llama-cloud 0.2.7
llama-index-legacy 0.9.48
llama-index-llms-ollama 0.1.6
llama-index-llms-openai 0.1.29
llama-index-llms-openai-like 0.1.3
llama-index-multi-modal-llms-openai 0.1.9
llama-index-program-openai 0.1.7
llama-index-question-gen-openai 0.1.3
llama-index-readers-file 0.1.32
llama-index-readers-llama-parse 0.1.6
llama-index-vector-stores-postgres 0.1.13
llama-parse 0.4.9
openai 1.40.2
openinference-instrumentation-llama-index 2.2.3
openinference-instrumentation-openai 0.1.12