Open arthurbrenno opened 2 months ago
@arthurbrenno here's the current deps for the gemini llm
It already specifies llama-index-core = "^0.11.0"
Probably can loosen the generative-ai dependency, assuming that google hasn't made many breaking changes
Thanks, Logan.
Feature Description
I am encountering a dependency conflict when attempting to add the
llama-index-llms-gemini
package to my project and I think some developers might have this problem too. The current version constraints forllama-index-llms-gemini
are incompatible with the latest versions ofllama-index-core
andgoogle-generativeai
that some projects might rely on.Current Issue:
When running the command:
I receive the following error:
Root Cause:
llama-index-llms-gemini
Versions:Available versions (
0.0.1
to0.3.5
) have dependencies that conflict with:llama-index-core >=0.11.14
google-generativeai >=0.8.2
Dependency Constraints:
llama-index-llms-gemini <0.3.0
depends onllama-index-core <0.11.0
.llama-index-llms-gemini >=0.1.9
depends ongoogle-generativeai >=0.5.2,<0.6.0
.llama-index-core >=0.11.14
andgoogle-generativeai >=0.8.2
.These constraints make it impossible to satisfy all dependencies simultaneously, preventing the successful addition of
llama-index-llms-gemini
.Proposed Enhancement:
Update the
llama-index-llms-gemini
package to support higher versions of its dependencies, specifically:llama-index-core
:<0.11.0
>=0.11.0
to align with projects usingllama-index-core >=0.11.14
.google-generativeai
:>=0.5.2,<0.6.0
>=0.8.2
, such as>=0.5.2,<1.0.0
.Benefits:
llama-index-core
andgoogle-generativeai
to integratellama-index-llms-gemini
without dependency conflicts.llama-index-llms-gemini
in modern environments.Additional Context:
I have verified that other dependencies in my project are compatible with the proposed updates. Ensuring that
llama-index-llms-gemini
supports these higher versions will greatly enhance its usability and integration within contemporary Python projects.Possible Solutions:
Update Dependency Specifications:
Modify the
setup.py
or equivalent configuration to relax the version constraints forllama-index-core
andgoogle-generativeai
.Semantic Versioning:
Ensure that the updates follow semantic versioning to indicate compatibility and prevent breaking changes for existing users.
Testing:
Provide comprehensive tests to verify that
llama-index-llms-gemini
functions correctly with the updated dependency versions.Thank You:
Thank you for your continued efforts in maintaining and improving the
llamaindex
project. Your work is greatly appreciated by the developer community!Reason
No response
Value of Feature
No response