cometapi-haystack 2.0.0__tar.gz → 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [integrations/cometapi-v2.0.1] - 2026-01-19
4
+
5
+ ### 🐛 Bug Fixes
6
+
7
+ - `CometAPIChatGenerator` - handle `delta` set to `None` (#2759)
8
+
9
+
10
+ ## [integrations/cometapi-v2.0.0] - 2026-01-09
11
+
12
+ ### 🧹 Chores
13
+
14
+ - Remove Readme API CI workflow and configs (#2573)
15
+ - Make fmt command more forgiving (#2671)
16
+ - [**breaking**] Cometapi - drop Python 3.9 and use X|Y typing (#2697)
17
+
18
+
3
19
  ## [integrations/cometapi-v1.1.0] - 2025-11-26
4
20
 
5
21
  ### 🚀 Features
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cometapi-haystack
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Use Comet API with Haystack to build AI applications with 500+ AI models.
5
5
  Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/cometapi#readme
6
6
  Project-URL: Issues, https://github.com/deepset-ai/haystack-core-integrations/issues
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.13
18
18
  Classifier: Programming Language :: Python :: Implementation :: CPython
19
19
  Classifier: Programming Language :: Python :: Implementation :: PyPy
20
20
  Requires-Python: >=3.10
21
- Requires-Dist: haystack-ai>=2.22.0
21
+ Requires-Dist: haystack-ai>=2.23.0
22
22
  Description-Content-Type: text/markdown
23
23
 
24
24
  # cometapi-haystack
@@ -25,7 +25,7 @@ classifiers = [
25
25
  "Programming Language :: Python :: Implementation :: CPython",
26
26
  "Programming Language :: Python :: Implementation :: PyPy",
27
27
  ]
28
- dependencies = ["haystack-ai>=2.22.0",]
28
+ dependencies = ["haystack-ai>=2.23.0"]
29
29
 
30
30
  [project.urls]
31
31
  Documentation = "https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/cometapi#readme"
@@ -77,11 +77,6 @@ non_interactive = true
77
77
  check_untyped_defs = true
78
78
  disallow_incomplete_defs = true
79
79
 
80
- [[tool.mypy.overrides]]
81
- module = [
82
- "jsonref.*", # jsonref does not provide types
83
- ]
84
- ignore_missing_imports = true
85
80
 
86
81
  [tool.ruff]
87
82
  line-length = 120
@@ -1,8 +1,13 @@
1
1
  from typing import Any
2
2
 
3
3
  from haystack.components.generators.chat import OpenAIChatGenerator
4
- from haystack.dataclasses import StreamingCallbackT
5
- from haystack.tools import Tool, Toolset
4
+ from haystack.dataclasses import (
5
+ StreamingCallbackT,
6
+ )
7
+ from haystack.tools import (
8
+ Tool,
9
+ Toolset,
10
+ )
6
11
  from haystack.utils import Secret
7
12
 
8
13
 
@@ -11,7 +11,6 @@ from haystack.components.tools import ToolInvoker
11
11
  from haystack.dataclasses import ChatMessage, ChatRole, StreamingChunk, ToolCall
12
12
  from haystack.tools import Tool
13
13
  from haystack.utils.auth import Secret
14
- from openai import OpenAIError
15
14
  from openai.types.chat import ChatCompletion, ChatCompletionChunk, ChatCompletionMessage
16
15
  from openai.types.chat.chat_completion import Choice
17
16
  from openai.types.chat.chat_completion_chunk import Choice as ChoiceChunk
@@ -257,16 +256,6 @@ class TestCometAPIChatGenerator:
257
256
  assert "gpt-5-mini" in message.meta["model"]
258
257
  assert message.meta["finish_reason"] == "stop"
259
258
 
260
- @pytest.mark.skipif(
261
- not os.environ.get("COMET_API_KEY", None),
262
- reason="Export an env var called COMET_API_KEY containing the OpenAI API key to run this test.",
263
- )
264
- @pytest.mark.integration
265
- def test_live_run_wrong_model(self, chat_messages):
266
- component = CometAPIChatGenerator(model="something-obviously-wrong")
267
- with pytest.raises(OpenAIError):
268
- component.run(chat_messages)
269
-
270
259
  @pytest.mark.skipif(
271
260
  not os.environ.get("COMET_API_KEY", None),
272
261
  reason="Export an env var called COMET_API_KEY containing the OpenAI API key to run this test.",