Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support both new and legacy llama_index versions #420

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

alex-feel
Copy link
Contributor

Update import logic to dynamically support both new (llama_index.core.llms) and legacy (llama_index.legacy.llms.custom) versions of the llama_index package. This change ensures compatibility across different versions of the package by using conditional imports and adjusting MODULE_NAME dynamically based on the available version. This improvement enhances the flexibility and maintainability of the codebase when working with the evolving llama_index library.

Update import logic to dynamically support both new (`llama_index.core.llms`) and legacy (`llama_index.legacy.llms.custom`) versions of the `llama_index` package. This change ensures compatibility across different versions of the package by using conditional imports and adjusting `MODULE_NAME` dynamically based on the available version. This improvement enhances the flexibility and maintainability of the codebase when working with the evolving `llama_index` library.
@CLAassistant
Copy link

CLAassistant commented Feb 13, 2024

CLA assistant check
All committers have signed the CLA.

@nirga
Copy link
Member

nirga commented Feb 13, 2024

Cool, thanks @alex-feel!

@nirga nirga merged commit 5e5bc88 into traceloop:main Feb 13, 2024
7 checks passed
@alex-feel alex-feel deleted the improve-llama-index-support branch February 13, 2024 18:45
nirga added a commit that referenced this pull request Feb 14, 2024
nirga added a commit that referenced this pull request Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants