From e114794d4a9c3e4a07cfea53b67085e2b9d2ad31 Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 18 May 2026 11:32:31 -0500 Subject: [PATCH 1/4] Export ContentPDF from chatlas.types ContentPDF was defined in _content.py but missing from the types module re-exports, unlike all other Content subclasses. --- chatlas/types/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chatlas/types/__init__.py b/chatlas/types/__init__.py index 4cb2cf4f..1c7d0b29 100644 --- a/chatlas/types/__init__.py +++ b/chatlas/types/__init__.py @@ -9,6 +9,7 @@ ContentImageInline, ContentImageRemote, ContentJson, + ContentPDF, ContentText, ContentThinking, ContentThinkingDelta, @@ -33,6 +34,7 @@ "ContentImageInline", "ContentImageRemote", "ContentJson", + "ContentPDF", "ContentText", "ContentThinking", "ContentThinkingDelta", From 99a6051d5f8205eb822f386d86511180d34cdf6c Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 18 May 2026 11:41:57 -0500 Subject: [PATCH 2/4] Sync prices.json from ellmer Fixes the "Check for pricing updates in Ellmer" CI check. --- chatlas/data/prices.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chatlas/data/prices.json b/chatlas/data/prices.json index ee48da7e..ca19ebb6 100644 --- a/chatlas/data/prices.json +++ b/chatlas/data/prices.json @@ -6029,6 +6029,14 @@ "output": 16, "cached_input": 0.4 }, + { + "provider": "OpenAI", + "model": "gpt-realtime-2", + "variant": "", + "input": 4, + "output": 16, + "cached_input": 0.4 + }, { "provider": "OpenAI", "model": "gpt-realtime-2025-08-28", From b816327f8f19d1fa870e5dd3db36dcf58fb3057f Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 18 May 2026 11:42:20 -0500 Subject: [PATCH 3/4] Add CHANGELOG entry for ContentPDF export fix --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c266bd9..4df06cae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). --> +## [UNRELEASED] + +### Bug fixes + +* `ContentPDF` is now exported from `chatlas.types`, matching all other `Content` subclasses. (#312) + ## [0.18.0] - 2026-05-12 ### New features From 18a7964d7e6feb99a43e0de11ab89a3786b9b14f Mon Sep 17 00:00:00 2001 From: Carson Date: Mon, 18 May 2026 11:43:01 -0500 Subject: [PATCH 4/4] Add ContentPDF to API reference docs --- docs/_quarto.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/_quarto.yml b/docs/_quarto.yml index e466b5d1..2ae7c892 100644 --- a/docs/_quarto.yml +++ b/docs/_quarto.yml @@ -221,6 +221,7 @@ quartodoc: - types.ContentImageInline - types.ContentImageRemote - types.ContentJson + - types.ContentPDF - types.ContentText - types.ContentThinking - types.ContentThinkingDelta