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

import llama only if needed #714

Merged
merged 2 commits into from
Dec 22, 2023
Merged

import llama only if needed #714

merged 2 commits into from
Dec 22, 2023

Conversation

joshreini1
Copy link
Contributor

@joshreini1 joshreini1 commented Dec 21, 2023

Address: #707

@joshreini1 joshreini1 marked this pull request as ready for review December 21, 2023 17:53
@joshreini1 joshreini1 requested a review from piotrm0 December 21, 2023 17:53
@piotrm0
Copy link
Contributor

piotrm0 commented Dec 21, 2023

@joshreini1 I adjusted this branch to use OptionalImports; can you check whether this works for your purposes?

@joshreini1
Copy link
Contributor Author

@joshreini1 I adjusted this branch to use OptionalImports; can you check whether this works for your purposes?

Seems to be a few other things in json.py that are requiring optional packages when importing Tru. Seeing httpx, openai (Timeout) so far.

@shayaks shayaks merged commit 332858b into main Dec 22, 2023
5 checks passed
sfc-gh-dhuang pushed a commit that referenced this pull request Jun 28, 2024
* import llama only if needed

* use optional imports instead

---------

Co-authored-by: Piotr Mardziel <[email protected]>
sfc-gh-chu pushed a commit that referenced this pull request Sep 25, 2024
* import llama only if needed

* use optional imports instead

---------

Co-authored-by: Piotr Mardziel <[email protected]>
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