PrefectHQ / marvin

✨ Build AI interfaces that spark joy
https://askmarvin.ai
Apache License 2.0
5.34k stars 348 forks source link

Getting the error - ThreadMessage ImportError: cannot import name 'ThreadMessage' from 'openai.types.beta.threads' on python 3.10 version after installing llama-parse and llama-index libraries #900

Open GildeshAbhay opened 8 months ago

GildeshAbhay commented 8 months ago

First check

Bug summary

Hi, I tried to install llama-index and llama-parse libraries on python 3.10 version but now marvin functionailities are not being imported.

Getting this error error - from openai.types.beta.threads import ThreadMessage ImportError: cannot import name 'ThreadMessage' from 'openai.types.beta.threads'

llama-index and llama-parse requires openai=1.16 version but but marvin imports are failing if we change from openai=1.11 version to 1.16

Reproduction

from openai.types.beta.threads import ThreadMessage

Error

ImportError: cannot import name 'ThreadMessage' from 'openai.types.beta.threads'

Versions

llama-index = 0.10.26
llama-parse = 0.4.0
marvin = 2.1.3

Additional context

No response

GildeshAbhay commented 8 months ago

beta functionalities of marvin are giving issues when openai version is being upgraded