Skip to content

Commit 26b0bbf

Browse files
Merge pull request #12 from shcherbak-ai/dev
Updated litellm dependency version after encoding bug has been fixed upstream. README update.
2 parents 608f0b7 + a40bf04 commit 26b0bbf

File tree

10 files changed

+139
-139
lines changed

10 files changed

+139
-139
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
- **Refactor**: Code reorganization that doesn't change functionality but improves structure or maintainability
77

8+
## [0.2.3](https://github.com/shcherbak-ai/contextgem/releases/tag/v0.2.3) - 2025-05-04
9+
### Changed
10+
- Updated litellm dependency version after encoding bug has been fixed upstream
11+
812
## [0.2.2](https://github.com/shcherbak-ai/contextgem/releases/tag/v0.2.2) - 2025-05-02
913
### Refactor
1014
- Refactored DOCX converter internals for better maintainability

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
1717
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-blue?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
1818
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
19-
[![Reddit](https://img.shields.io/badge/Reddit-Community-FF4500?logo=reddit&logoColor=white)](https://reddit.com/r/ContextGem)
19+
[![DeepWiki](https://img.shields.io/static/v1?label=DeepWiki&message=Chat%20with%20Code&labelColor=%23283593&color=%237E57C2&style=flat-square)](https://deepwiki.com/shcherbak-ai/contextgem)
2020

2121
<img src="https://contextgem.dev/_static/tab_solid.png" alt="ContextGem: 2nd Product of the week" width="250">
2222
<br/><br/>
@@ -336,13 +336,13 @@ Full documentation is available at [contextgem.dev](https://contextgem.dev).
336336

337337
A raw text version of the full documentation is available at [`docs/docs-raw-for-llm.txt`](https://github.com/shcherbak-ai/contextgem/blob/main/docs/docs-raw-for-llm.txt). This file is automatically generated and contains all documentation in a format optimized for LLM ingestion (e.g. for Q&A).
338338

339+
You can also explore the repository through [DeepWiki](https://deepwiki.com/shcherbak-ai/contextgem), an AI-powered conversational interface that provides visual architecture maps and natural language Q&A for the codebase.
340+
339341

340342
## 💬 Community
341343

342344
If you have a feature request or a bug report, feel free to [open an issue](https://github.com/shcherbak-ai/contextgem/issues/new) on GitHub. If you'd like to discuss a topic or get general advice on using ContextGem for your project, start a thread in [GitHub Discussions](https://github.com/shcherbak-ai/contextgem/discussions/new/).
343345

344-
Join our [Reddit community](https://reddit.com/r/ContextGem) to connect with other users, share your projects, ask questions, and participate in discussions about ContextGem.
345-
346346

347347
## 🤝 Contributing
348348

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.2"
23+
__version__ = "0.2.3"
2424
__author__ = "Shcherbak AI AS"
2525

2626
from contextgem.public import (

contextgem/public/llms.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
from pathlib import Path
3838
from typing import TYPE_CHECKING, Any, Literal, Optional
3939

40+
import litellm
4041
from aiolimiter import AsyncLimiter
4142
from jinja2 import Template
43+
from litellm import acompletion, supports_vision
4244
from pydantic import (
4345
Field,
4446
PrivateAttr,
@@ -49,12 +51,6 @@
4951
model_validator,
5052
)
5153

52-
with warnings.catch_warnings():
53-
# LiteLLM is not yet fully up-to-date with Pydantic V2.0
54-
warnings.simplefilter("ignore", DeprecationWarning)
55-
import litellm
56-
from litellm import acompletion, supports_vision
57-
5854
if TYPE_CHECKING:
5955
from contextgem.internal.data_models import (
6056
_LLMUsageOutputContainer,

dev/readme.template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
1717
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-blue?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
1818
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
19-
[![Reddit](https://img.shields.io/badge/Reddit-Community-FF4500?logo=reddit&logoColor=white)](https://reddit.com/r/ContextGem)
19+
[![DeepWiki](https://img.shields.io/static/v1?label=DeepWiki&message=Chat%20with%20Code&labelColor=%23283593&color=%237E57C2&style=flat-square)](https://deepwiki.com/shcherbak-ai/contextgem)
2020

2121
<img src="https://contextgem.dev/_static/tab_solid.png" alt="ContextGem: 2nd Product of the week" width="250">
2222
<br/><br/>
@@ -147,13 +147,13 @@ Full documentation is available at [contextgem.dev](https://contextgem.dev).
147147

148148
A raw text version of the full documentation is available at [`docs/docs-raw-for-llm.txt`](https://github.com/shcherbak-ai/contextgem/blob/main/docs/docs-raw-for-llm.txt). This file is automatically generated and contains all documentation in a format optimized for LLM ingestion (e.g. for Q&A).
149149

150+
You can also explore the repository through [DeepWiki](https://deepwiki.com/shcherbak-ai/contextgem), an AI-powered conversational interface that provides visual architecture maps and natural language Q&A for the codebase.
151+
150152

151153
## 💬 Community
152154

153155
If you have a feature request or a bug report, feel free to [open an issue](https://github.com/shcherbak-ai/contextgem/issues/new) on GitHub. If you'd like to discuss a topic or get general advice on using ContextGem for your project, start a thread in [GitHub Discussions](https://github.com/shcherbak-ai/contextgem/discussions/new/).
154156

155-
Join our [Reddit community](https://reddit.com/r/ContextGem) to connect with other users, share your projects, ask questions, and participate in discussions about ContextGem.
156-
157157

158158
## 🤝 Contributing
159159

dev/requirements/requirements.dev.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ 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"
1818
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"
20-
charset-normalizer==3.4.1 ; python_version >= "3.10" and python_version < "3.14"
20+
charset-normalizer==3.4.2 ; python_version >= "3.10" and python_version < "3.14"
2121
click==8.1.8 ; python_version >= "3.10" and python_version < "3.14"
2222
colorama==0.4.6 ; python_version >= "3.10" and python_version < "3.14"
2323
commitizen==4.6.0 ; python_version >= "3.10" and python_version < "3.14"
@@ -44,11 +44,11 @@ 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"
47-
joblib==1.4.2 ; python_version >= "3.10" and python_version < "3.14"
47+
joblib==1.5.0 ; python_version >= "3.10" and python_version < "3.14"
4848
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.1 ; python_version >= "3.10" and python_version < "3.14"
51+
litellm==1.68.0 ; 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"
@@ -73,13 +73,13 @@ nvidia-cusparselt-cu12==0.6.3 ; python_version >= "3.10" and python_version < "3
7373
nvidia-nccl-cu12==2.26.2 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
7474
nvidia-nvjitlink-cu12==12.6.85 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
7575
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"
76+
openai==1.75.0 ; python_version >= "3.10" and python_version < "3.14"
7777
openfile==0.0.7 ; python_version >= "3.10" and python_version < "3.14"
7878
packaging==25.0 ; python_version >= "3.10" and python_version < "3.14"
7979
pandas==2.2.3 ; python_version >= "3.10" and python_version < "3.14"
8080
pathspec==0.12.1 ; python_version >= "3.10" and python_version < "3.14"
8181
pip-tools==7.4.1 ; python_version >= "3.10" and python_version < "3.14"
82-
pip==25.1 ; python_version >= "3.10" and python_version < "3.14"
82+
pip==25.1.1 ; python_version >= "3.10" and python_version < "3.14"
8383
platformdirs==4.3.7 ; python_version >= "3.10" and python_version < "3.14"
8484
pluggy==1.5.0 ; python_version >= "3.10" and python_version < "3.14"
8585
pre-commit==4.2.0 ; python_version >= "3.10" and python_version < "3.14"
@@ -107,7 +107,7 @@ rpds-py==0.24.0 ; python_version >= "3.10" and python_version < "3.14"
107107
safetensors==0.5.3 ; python_version >= "3.10" and python_version < "3.14"
108108
scikit-learn==1.6.1 ; python_version >= "3.10" and python_version < "3.14"
109109
scipy==1.15.2 ; python_version >= "3.10" and python_version < "3.14"
110-
setuptools==80.1.0 ; python_version >= "3.10" and python_version < "3.14"
110+
setuptools==80.2.0 ; python_version >= "3.10" and python_version < "3.14"
111111
six==1.17.0 ; python_version >= "3.10" and python_version < "3.14"
112112
skops==0.11.0 ; python_version >= "3.10" and python_version < "3.14"
113113
sniffio==1.3.1 ; python_version >= "3.10" and python_version < "3.14"

dev/requirements/requirements.main.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async-timeout==5.0.1 ; python_version == "3.10"
99
attrs==25.3.0 ; python_version >= "3.10" and python_version < "3.14"
1010
cached-property==2.0.1 ; python_version >= "3.10" and python_version < "3.14"
1111
certifi==2025.4.26 ; python_version >= "3.10" and python_version < "3.14"
12-
charset-normalizer==3.4.1 ; python_version >= "3.10" and python_version < "3.14"
12+
charset-normalizer==3.4.2 ; python_version >= "3.10" and python_version < "3.14"
1313
click==8.1.8 ; python_version >= "3.10" and python_version < "3.14"
1414
colorama==0.4.6 ; python_version >= "3.10" and python_version < "3.14" and (platform_system == "Windows" or sys_platform == "win32")
1515
distro==1.9.0 ; python_version >= "3.10" and python_version < "3.14"
@@ -26,10 +26,10 @@ idna==3.10 ; python_version >= "3.10" and python_version < "3.14"
2626
importlib-metadata==8.7.0 ; python_version >= "3.10" and python_version < "3.14"
2727
jinja2==3.1.6 ; python_version >= "3.10" and python_version < "3.14"
2828
jiter==0.9.0 ; python_version >= "3.10" and python_version < "3.14"
29-
joblib==1.4.2 ; python_version >= "3.10" and python_version < "3.14"
29+
joblib==1.5.0 ; python_version >= "3.10" and python_version < "3.14"
3030
jsonschema-specifications==2025.4.1 ; python_version >= "3.10" and python_version < "3.14"
3131
jsonschema==4.23.0 ; python_version >= "3.10" and python_version < "3.14"
32-
litellm==1.67.1 ; python_version >= "3.10" and python_version < "3.14"
32+
litellm==1.68.0 ; python_version >= "3.10" and python_version < "3.14"
3333
loguru==0.7.3 ; python_version >= "3.10" and python_version < "3.14"
3434
markupsafe==3.0.2 ; python_version >= "3.10" and python_version < "3.14"
3535
mosestokenizer==1.2.1 ; python_version >= "3.10" and python_version < "3.14"
@@ -51,7 +51,7 @@ nvidia-cusparselt-cu12==0.6.3 ; python_version >= "3.10" and python_version < "3
5151
nvidia-nccl-cu12==2.26.2 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
5252
nvidia-nvjitlink-cu12==12.6.85 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
5353
nvidia-nvtx-cu12==12.6.77 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64"
54-
openai==1.76.2 ; python_version >= "3.10" and python_version < "3.14"
54+
openai==1.75.0 ; python_version >= "3.10" and python_version < "3.14"
5555
openfile==0.0.7 ; python_version >= "3.10" and python_version < "3.14"
5656
packaging==25.0 ; python_version >= "3.10" and python_version < "3.14"
5757
pandas==2.2.3 ; python_version >= "3.10" and python_version < "3.14"
@@ -70,7 +70,7 @@ rpds-py==0.24.0 ; python_version >= "3.10" and python_version < "3.14"
7070
safetensors==0.5.3 ; python_version >= "3.10" and python_version < "3.14"
7171
scikit-learn==1.6.1 ; python_version >= "3.10" and python_version < "3.14"
7272
scipy==1.15.2 ; python_version >= "3.10" and python_version < "3.14"
73-
setuptools==80.1.0 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64" or python_version >= "3.12" and python_version < "3.14"
73+
setuptools==80.2.0 ; python_version >= "3.10" and python_version < "3.14" and platform_system == "Linux" and platform_machine == "x86_64" or python_version >= "3.12" and python_version < "3.14"
7474
six==1.17.0 ; python_version >= "3.10" and python_version < "3.14"
7575
skops==0.11.0 ; python_version >= "3.10" and python_version < "3.14"
7676
sniffio==1.3.1 ; python_version >= "3.10" and python_version < "3.14"

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
project = "ContextGem"
2323
copyright = "2025, Shcherbak AI AS"
2424
author = "Sergii Shcherbak"
25-
release = "0.2.2"
25+
release = "0.2.3"
2626

2727

2828
# Add path to the package

0 commit comments

Comments
 (0)