OpenAI dependency problem #12251
Replies: 1 comment
-
Hey @sherylZhaoCode, good to see you back! Hope you're doing well. Based on the information available in the LlamaIndex repository, it seems that the specific version of the OpenAI dependency is not explicitly mentioned. However, the Regarding the import error you're encountering, it's possible that the To resolve this issue, I would recommend checking the rest of the LlamaIndex codebase for the definition of these classes. If they are not found, it might be necessary to reach out to the original authors or contributors of the LlamaIndex project for clarification. If you have any additional information about the OpenAI dependency, such as a specific version number or a commit hash, it would be helpful in further investigating this issue. Sources
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I was wondering which version of OpenAI is the latest version of llama_index depending on?
There's a line in the code:
llama_index/agent/openai/openai_assistant_agent.py:31
29 def from_openai_thread_message(thread_message: Any) -> ChatMessage:
30 """From OpenAI thread message."""
---> 31 from openai.types.beta.threads import MessageContentText, ThreadMessage
33 thread_message = cast(ThreadMessage, thread_message)
35 # we don't have a way of showing images, just do text for now
Both MessageContentText and ThreadMessage are not part of openai.types.beta.threads in the latest openai version, and I got import error for both of these. And wasn't able to find it in any previous openai version. So was wondering which openai version I should install to make this line of code work.
Beta Was this translation helpful? Give feedback.
All reactions