Skip to content

Commit

Permalink
Add llm add install test (#193)
Browse files Browse the repository at this point in the history
* fix install

* fix install

* fix install

---------

Co-authored-by: Gaurav - Personal <[email protected]>
  • Loading branch information
gsheni and Gaurav - Personal authored Mar 30, 2024
1 parent c7e9c33 commit 3d74335
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ jobs:
- name: Check package conflicts
run: |
python -m pip check
- name: Install add ons
run: |
python -m pip install "unpacked_sdist/[llm]"
- name: Test by importing packages
run: |
python -c "import openai"
3 changes: 3 additions & 0 deletions .github/workflows/test_without_dev_deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ jobs:
print(problems[39])
print(problems[0].create_target_values(data).head(5))
shell: python
- name: Build llm add-on
run: |
python -m pip install unpacked_sdist/[llm]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ For each <location> predict if there exists a record with <rating> equal to <str
For each <location> predict if there exists a record with <rating> not equal to <str>
```

With Trane's LLM add-on (`pip install trane[llm]`), we can determine the relevant problems with OpenAI:
With Trane's LLM add-on (`pip install "trane[llm]"`), we can determine the relevant problems with OpenAI:
```python
from trane.llm import analyze

Expand Down
1 change: 0 additions & 1 deletion trane/llm/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

openai = import_or_none("openai")
tiktoken = import_or_none("tiktoken")
anthropic = import_or_none("anthropic")
ipython = import_or_none("IPython")


Expand Down

0 comments on commit 3d74335

Please sign in to comment.