marvin icon indicating copy to clipboard operation
marvin copied to clipboard

Dependency Conflict with Latest OpenAI Package Version

Open jonnyhoff opened this issue 1 year ago • 4 comments

First check

  • [X] I added a descriptive title to this issue.
  • [X] I used the GitHub search to try to find a similar issue and didn't find one.
  • [X] I searched the Marvin documentation for this issue.

Bug summary

I encountered a dependency resolution issue when trying to add the marvin package to my project which already depends on a newer version of the openai package.

While attempting to install marvin version ^1.5.6, I ran into a version solving failure due to a dependency conflict between marvin and openai.

Reproduction

Add the latest `openai` package then try add the latest `marvin` package.

Error

❯ poetry add marvin
Using version ^1.5.6 for marvin

Updating dependencies
Resolving dependencies... (0.3s)

Because no versions of marvin match >1.5.6,<2.0.0
 and marvin (1.5.6) depends on openai (>=0.27.8,<1.0.0), marvin (>=1.5.6,<2.0.0) requires openai (>=0.27.8,<1.0.0).
So, because project depends on both openai (^1.2.3) and marvin (^1.5.6), version solving failed.

Versions

marvin (1.5.6)
openai (1.2.3)

Additional context

This dependency conflict limits the ability of developers to integrate marvin into projects that leverage the latest advancements in the openai library, which is increasingly important for AI-related development work.

Thank you for considering this update. I look forward to a resolution that allows for smoother integration of marvin with newer openai versions.

jonnyhoff avatar Nov 14 '23 09:11 jonnyhoff

I also have the same issue. But notice the main branch is already using openai > 1.0.0. Looks like this upgrade is already underway

ttamg avatar Nov 14 '23 10:11 ttamg

Please also consider integrating AzureOpenAI with this. The OpenAI SDK 1.x changed the way that Azure is integrated. Did someone manage to get Azure OpenAI running at the moment? Even with the older versions I have no luck.

pietz avatar Nov 18 '23 11:11 pietz

I have issues with with getting it to work with Azure as well. There seems to have breaking changes for the whole Azure flow.

grand-cat-unknown avatar Nov 18 '23 18:11 grand-cat-unknown

Facing the same issue, hopefully they fix this soon.

adriangalilea avatar Dec 05 '23 12:12 adriangalilea