Skip to content

Commit a64c81b

Browse files
Merge pull request #10 from shcherbak-ai/dev
Fix: encoding bug in litellm > v1.67.1. Fixed by pinning dependency litellm==1.67.1. Docs update. ContextGem version bump to 0.2.1.
2 parents 5be79d2 + 4ca1f29 commit a64c81b

16 files changed

+447
-390
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Daily Import Test
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Run daily at midnight UTC
6+
workflow_dispatch: # Allow manual triggering
7+
8+
jobs:
9+
import-test:
10+
runs-on: macos-latest
11+
12+
steps:
13+
- name: Set up Python 3.13
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.13'
17+
18+
- name: Install contextgem from PyPI
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install contextgem
22+
23+
- name: Test import
24+
run: |
25+
python -c "import contextgem; print(f'Successfully imported contextgem version {contextgem.__version__}')"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![ContextGem](https://contextgem.dev/_static/contextgem_poster.png "ContextGem - Effortless LLM extraction from documents")
1+
![ContextGem](https://contextgem.dev/_static/contextgem_readme_header.png "ContextGem - Effortless LLM extraction from documents")
22

33
# ContextGem: Effortless LLM extraction from documents
44

contextgem/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ContextGem - Effortless LLM extraction from documents
2121
"""
2222

23-
__version__ = "0.2.0"
23+
__version__ = "0.2.1"
2424
__author__ = "Shcherbak AI AS"
2525

2626
from contextgem.public import (

dev/readme.template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![ContextGem](https://contextgem.dev/_static/contextgem_poster.png "ContextGem - Effortless LLM extraction from documents")
1+
![ContextGem](https://contextgem.dev/_static/contextgem_readme_header.png "ContextGem - Effortless LLM extraction from documents")
22

33
# ContextGem: Effortless LLM extraction from documents
44

dev/requirements/requirements.dev.txt

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
accessible-pygments==0.0.5 ; python_version >= "3.10" and python_version < "3.14"
22
adapters==1.1.1 ; python_version >= "3.10" and python_version < "3.14"
33
aiohappyeyeballs==2.6.1 ; python_version >= "3.10" and python_version < "3.14"
4-
aiohttp==3.11.17 ; python_version >= "3.10" and python_version < "3.14"
4+
aiohttp==3.11.18 ; python_version >= "3.10" and python_version < "3.14"
55
aiolimiter==1.2.1 ; python_version >= "3.10" and python_version < "3.14"
66
aiosignal==1.3.2 ; python_version >= "3.10" and python_version < "3.14"
77
alabaster==0.7.16 ; python_version >= "3.10" and python_version < "3.14"
@@ -15,7 +15,7 @@ beautifulsoup4==4.13.4 ; python_version >= "3.10" and python_version < "3.14"
1515
black==25.1.0 ; python_version >= "3.10" and python_version < "3.14"
1616
build==1.2.2.post1 ; python_version >= "3.10" and python_version < "3.14"
1717
cached-property==2.0.1 ; python_version >= "3.10" and python_version < "3.14"
18-
certifi==2025.1.31 ; python_version >= "3.10" and python_version < "3.14"
18+
certifi==2025.4.26 ; python_version >= "3.10" and python_version < "3.14"
1919
cfgv==3.4.0 ; python_version >= "3.10" and python_version < "3.14"
2020
charset-normalizer==3.4.1 ; python_version >= "3.10" and python_version < "3.14"
2121
click==8.1.8 ; python_version >= "3.10" and python_version < "3.14"
@@ -32,60 +32,61 @@ fastjsonschema==2.21.1 ; python_version >= "3.10" and python_version < "3.14"
3232
filelock==3.18.0 ; python_version >= "3.10" and python_version < "3.14"
3333
frozenlist==1.6.0 ; python_version >= "3.10" and python_version < "3.14"
3434
fsspec==2025.3.2 ; python_version >= "3.10" and python_version < "3.14"
35-
h11==0.14.0 ; python_version >= "3.10" and python_version < "3.14"
36-
httpcore==1.0.8 ; python_version >= "3.10" and python_version < "3.14"
35+
h11==0.16.0 ; python_version >= "3.10" and python_version < "3.14"
36+
httpcore==1.0.9 ; python_version >= "3.10" and python_version < "3.14"
3737
httpx==0.28.1 ; python_version >= "3.10" and python_version < "3.14"
3838
huggingface-hub==0.30.2 ; python_version >= "3.10" and python_version < "3.14"
3939
identify==2.6.10 ; python_version >= "3.10" and python_version < "3.14"
4040
idna==3.10 ; python_version >= "3.10" and python_version < "3.14"
4141
imagesize==1.4.1 ; python_version >= "3.10" and python_version < "3.14"
42-
importlib-metadata==8.6.1 ; python_version >= "3.10" and python_version < "3.14"
42+
importlib-metadata==8.7.0 ; python_version >= "3.10" and python_version < "3.14"
4343
iniconfig==2.1.0 ; python_version >= "3.10" and python_version < "3.14"
4444
isort==6.0.1 ; python_version >= "3.10" and python_version < "3.14"
4545
jinja2==3.1.6 ; python_version >= "3.10" and python_version < "3.14"
4646
jiter==0.9.0 ; python_version >= "3.10" and python_version < "3.14"
4747
joblib==1.4.2 ; python_version >= "3.10" and python_version < "3.14"
48-
jsonschema-specifications==2024.10.1 ; python_version >= "3.10" and python_version < "3.14"
48+
jsonschema-specifications==2025.4.1 ; python_version >= "3.10" and python_version < "3.14"
4949
jsonschema==4.23.0 ; python_version >= "3.10" and python_version < "3.14"
5050
jupyter-core==5.7.2 ; python_version >= "3.10" and python_version < "3.14"
51-
litellm==1.67.0 ; python_version >= "3.10" and python_version < "3.14"
51+
litellm==1.67.1 ; python_version >= "3.10" and python_version < "3.14"
5252
loguru==0.7.3 ; python_version >= "3.10" and python_version < "3.14"
5353
markupsafe==3.0.2 ; python_version >= "3.10" and python_version < "3.14"
5454
mosestokenizer==1.2.1 ; python_version >= "3.10" and python_version < "3.14"
5555
mpmath==1.3.0 ; python_version >= "3.10" and python_version < "3.14"
5656
multidict==6.4.3 ; python_version >= "3.10" and python_version < "3.14"
57-
mypy-extensions==1.0.0 ; python_version >= "3.10" and python_version < "3.14"
57+
mypy-extensions==1.1.0 ; python_version >= "3.10" and python_version < "3.14"
5858
nbformat==5.10.4 ; python_version >= "3.10" and python_version < "3.14"
5959
networkx==3.4.2 ; python_version >= "3.10" and python_version < "3.14"
6060
nodeenv==1.9.1 ; python_version >= "3.10" and python_version < "3.14"
6161
numpy==2.2.5 ; python_version >= "3.10" and python_version < "3.14"
62-
nvidia-cublas-cu12==12.4.5.8 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
63-
nvidia-cuda-cupti-cu12==12.4.127 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
64-
nvidia-cuda-nvrtc-cu12==12.4.127 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
65-
nvidia-cuda-runtime-cu12==12.4.127 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
66-
nvidia-cudnn-cu12==9.1.0.70 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
67-
nvidia-cufft-cu12==11.2.1.3 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
68-
nvidia-curand-cu12==10.3.5.147 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
69-
nvidia-cusolver-cu12==11.6.1.9 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
70-
nvidia-cusparse-cu12==12.3.1.170 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
71-
nvidia-cusparselt-cu12==0.6.2 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
72-
nvidia-nccl-cu12==2.21.5 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
73-
nvidia-nvjitlink-cu12==12.4.127 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
74-
nvidia-nvtx-cu12==12.4.127 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
75-
openai==1.75.0 ; python_version >= "3.10" and python_version < "3.14"
62+
nvidia-cublas-cu12==12.6.4.1 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
63+
nvidia-cuda-cupti-cu12==12.6.80 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
64+
nvidia-cuda-nvrtc-cu12==12.6.77 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
65+
nvidia-cuda-runtime-cu12==12.6.77 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
66+
nvidia-cudnn-cu12==9.5.1.17 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
67+
nvidia-cufft-cu12==11.3.0.4 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
68+
nvidia-cufile-cu12==1.11.1.6 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
69+
nvidia-curand-cu12==10.3.7.77 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
70+
nvidia-cusolver-cu12==11.7.1.2 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
71+
nvidia-cusparse-cu12==12.5.4.2 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
72+
nvidia-cusparselt-cu12==0.6.3 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
73+
nvidia-nccl-cu12==2.26.2 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
74+
nvidia-nvjitlink-cu12==12.6.85 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
75+
nvidia-nvtx-cu12==12.6.77 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
76+
openai==1.76.2 ; python_version >= "3.10" and python_version < "3.14"
7677
openfile==0.0.7 ; python_version >= "3.10" and python_version < "3.14"
7778
packaging==25.0 ; python_version >= "3.10" and python_version < "3.14"
7879
pandas==2.2.3 ; python_version >= "3.10" and python_version < "3.14"
7980
pathspec==0.12.1 ; python_version >= "3.10" and python_version < "3.14"
8081
pip-tools==7.4.1 ; python_version >= "3.10" and python_version < "3.14"
81-
pip==25.0.1 ; python_version >= "3.10" and python_version < "3.14"
82+
pip==25.1 ; python_version >= "3.10" and python_version < "3.14"
8283
platformdirs==4.3.7 ; python_version >= "3.10" and python_version < "3.14"
8384
pluggy==1.5.0 ; python_version >= "3.10" and python_version < "3.14"
8485
pre-commit==4.2.0 ; python_version >= "3.10" and python_version < "3.14"
8586
prompt-toolkit==3.0.51 ; python_version >= "3.10" and python_version < "3.14"
8687
propcache==0.3.1 ; python_version >= "3.10" and python_version < "3.14"
87-
pydantic-core==2.33.1 ; python_version >= "3.10" and python_version < "3.14"
88-
pydantic==2.11.3 ; python_version >= "3.10" and python_version < "3.14"
88+
pydantic-core==2.33.2 ; python_version >= "3.10" and python_version < "3.14"
89+
pydantic==2.11.4 ; python_version >= "3.10" and python_version < "3.14"
8990
pydata-sphinx-theme==0.15.4 ; python_version >= "3.10" and python_version < "3.14"
9091
pygments==2.19.1 ; python_version >= "3.10" and python_version < "3.14"
9192
pyproject-hooks==1.2.0 ; python_version >= "3.10" and python_version < "3.14"
@@ -106,7 +107,7 @@ rpds-py==0.24.0 ; python_version >= "3.10" and python_version < "3.14"
106107
safetensors==0.5.3 ; python_version >= "3.10" and python_version < "3.14"
107108
scikit-learn==1.6.1 ; python_version >= "3.10" and python_version < "3.14"
108109
scipy==1.15.2 ; python_version >= "3.10" and python_version < "3.14"
109-
setuptools==79.0.0 ; python_version >= "3.10" and python_version < "3.14"
110+
setuptools==80.1.0 ; python_version >= "3.10" and python_version < "3.14"
110111
six==1.17.0 ; python_version >= "3.10" and python_version < "3.14"
111112
skops==0.11.0 ; python_version >= "3.10" and python_version < "3.14"
112113
sniffio==1.3.1 ; python_version >= "3.10" and python_version < "3.14"
@@ -124,7 +125,7 @@ sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.10" and python_version < "3.1
124125
sphinxcontrib-qthelp==2.0.0 ; python_version >= "3.10" and python_version < "3.14"
125126
sphinxcontrib-serializinghtml==2.0.0 ; python_version >= "3.10" and python_version < "3.14"
126127
sphinxext-opengraph==0.9.1 ; python_version >= "3.10" and python_version < "3.14"
127-
sympy==1.13.1 ; python_version >= "3.10" and python_version < "3.14"
128+
sympy==1.14.0 ; python_version >= "3.10" and python_version < "3.14"
128129
tabulate==0.9.0 ; python_version >= "3.10" and python_version < "3.14"
129130
termcolor==2.5.0 ; python_version >= "3.10" and python_version < "3.14"
130131
threadpoolctl==3.6.0 ; python_version >= "3.10" and python_version < "3.14"
@@ -133,11 +134,11 @@ tokenizers==0.21.1 ; python_version >= "3.10" and python_version < "3.14"
133134
tomli==2.2.1 ; python_version == "3.10"
134135
tomlkit==0.13.2 ; python_version >= "3.10" and python_version < "3.14"
135136
toolwrapper==2.1.0 ; python_version >= "3.10" and python_version < "3.14"
136-
torch==2.6.0 ; python_version >= "3.10" and python_version < "3.14"
137+
torch==2.7.0 ; python_version >= "3.10" and python_version < "3.14"
137138
tqdm==4.67.1 ; python_version >= "3.10" and python_version < "3.14"
138139
traitlets==5.14.3 ; python_version >= "3.10" and python_version < "3.14"
139140
transformers==4.48.3 ; python_version >= "3.10" and python_version < "3.14"
140-
triton==3.2.0 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
141+
triton==3.3.0 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
141142
typing-extensions==4.13.2 ; python_version >= "3.10" and python_version < "3.14"
142143
typing-inspection==0.4.0 ; python_version >= "3.10" and python_version < "3.14"
143144
tzdata==2025.2 ; python_version >= "3.10" and python_version < "3.14"

0 commit comments

Comments
 (0)