Skip to content

Commit 705d7cf

Browse files
build: v0.19.3
Upgraded pinned dependency versions of litellm, openai, genai-prices.
1 parent 83c949e commit 705d7cf

File tree

6 files changed

+1434
-1344
lines changed

6 files changed

+1434
-1344
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ 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.19.3](https://github.com/shcherbak-ai/contextgem/releases/tag/v0.19.3) - 2025-11-16
9+
### Changed
10+
- Upgraded pinned dependency versions: `litellm==1.80.0`, `openai==2.8.0`, `genai-prices==0.0.39`. Versions remain pinned to maintain stability and avoid occasional breaking changes and API inconsistencies observed in previous unpinned releases.
11+
12+
### Note
13+
- The litellm 1.80.0 upgrade introduces Pydantic serialization warnings during async cleanup phases. These warnings are non-actionable and do not affect functionality. This is a known upstream issue tracked at [litellm PR #16299](https://github.com/BerriAI/litellm/pull/16299). ContextGem suppresses these warnings within its execution contexts; warnings may appear only during cleanup phases after operations complete.
14+
815
## [0.19.2](https://github.com/shcherbak-ai/contextgem/releases/tag/v0.19.2) - 2025-09-30
916
### Fixed
1017
- Logging system refactored to use Python's standard library logging with namespaced logger (`contextgem`) for production-ready integration. Eliminates global state pollution, prevents conflicts with host application logging, and enables independent configuration. Replaced Loguru with colorlog for colored output.

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

2626
from contextgem.public import (

contextgem/internal/suppressions.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,23 @@ def _suppress_litellm_warnings_context() -> Generator[None, None, None]:
221221
The context manager uses Python's warnings.catch_warnings() to create a temporary
222222
warning filter that ignores the specified warnings only within its scope.
223223
224+
Note: Some warnings may still appear during async cleanup phases that occur after
225+
the context exits. These are typically from litellm's internal async client cleanup
226+
and can be safely ignored.
227+
224228
:return: A generator that yields None and expects no values to be sent back.
225229
:rtype: Generator[None, None, None]
226230
"""
227231
with warnings.catch_warnings():
228-
# Pydantic
232+
# Pydantic - use regex pattern to match pydantic and pydantic.* submodules
229233
warnings.filterwarnings(
230-
"ignore", category=DeprecationWarning, module="pydantic"
234+
"ignore", category=DeprecationWarning, module=r"pydantic(\..*)?"
231235
)
232236
warnings.filterwarnings(
233237
"ignore",
234238
category=UserWarning,
235-
module="pydantic",
236-
message=r"^Pydantic serializer warnings",
239+
module=r"pydantic\.main",
240+
message=r"^Pydantic serializer warnings:",
237241
)
238242
# httpx (typically when using local LLMs)
239243
warnings.filterwarnings(

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
project = "ContextGem"
2626
copyright = "2025, Shcherbak AI AS"
2727
author = "Sergii Shcherbak"
28-
release = "0.19.2"
28+
release = "0.19.3"
2929

3030

3131
# Add path to the package

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "contextgem"
3-
version = "0.19.2"
3+
version = "0.19.3"
44
description = "Effortless LLM extraction from documents"
55
authors = [{ name = "shcherbak-ai", email = "sergii@shcherbak.ai" }]
66
requires-python = ">=3.10,<3.14"
@@ -95,11 +95,11 @@ dependencies = [
9595
"aiolimiter (>=1.2.1,<2.0.0)",
9696
"colorlog (>=6.9.0,<7.0.0)",
9797
"fastjsonschema (>=2.21.2,<3.0.0)",
98-
"genai-prices==0.0.29", # pin version due to frequent API changes
98+
"genai-prices==0.0.39", # pin version due to frequent API changes
9999
"jinja2 (>=3.1.5,<4.0.0)",
100-
"litellm==1.77.5", # pin version due to occasional instability between patches and minor versions
100+
"litellm==1.80.0", # pin version due to occasional instability between patches and minor versions
101101
"lxml (>=5.4.0,<6.0.0)",
102-
"openai==1.109.1", # pinned version for stable compatibility with litellm (after issue with 1.100.0)
102+
"openai==2.8.0", # pinned version for stable compatibility with litellm (after issue with 1.100.0)
103103
"pillow (>=11.3.0,<12.0.0)",
104104
"pydantic (>=2.10.6,<3.0.0)",
105105
"python-ulid (>=3.0.0,<4.0.0)",

0 commit comments

Comments
 (0)