Skip to content

Commit

Permalink
feat: add token limit to openai encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescalam committed Apr 28, 2024
1 parent 17fd519 commit f497e32
Show file tree
Hide file tree
Showing 6 changed files with 1,552 additions and 1,233 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Download nltk data
run: |
python -m nltk.downloader punkt stopwords wordnet
- name: Pytest
- name: Pytest All
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ lint lint_diff:

test:
poetry run pytest -vv -n 20 --cov=semantic_router --cov-report=term-missing --cov-report=xml

test_functional:
poetry run pytest -vv -n 20 tests/functional
test_unit:
poetry run pytest -vv -n 20 tests/unit
test_integration:
poetry run pytest -vv -n 20 tests/integration
Loading

0 comments on commit f497e32

Please sign in to comment.