cometapi-haystack 1.1.0__tar.gz → 2.0.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.
- cometapi_haystack-2.0.0/CHANGELOG.md +18 -0
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/PKG-INFO +3 -4
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/pyproject.toml +4 -10
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/src/haystack_integrations/components/generators/cometapi/chat/chat_generator.py +7 -7
- cometapi_haystack-1.1.0/CHANGELOG.md +0 -9
- cometapi_haystack-1.1.0/pydoc/config.yml +0 -29
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/.gitignore +0 -0
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/LICENSE.txt +0 -0
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/README.md +0 -0
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/pydoc/config_docusaurus.yml +0 -0
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/src/haystack_integrations/components/generators/cometapi/__init__.py +0 -0
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/src/haystack_integrations/components/generators/py.typed +0 -0
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/tests/test_cometapi_chat_generator.py +0 -0
- {cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/tests/test_cometapi_chat_generator_async.py +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [integrations/cometapi-v1.1.0] - 2025-11-26
|
|
4
|
+
|
|
5
|
+
### 🚀 Features
|
|
6
|
+
|
|
7
|
+
- Add CometAPI integration with CometAPIChatGenerator class and configuration (#2345)
|
|
8
|
+
|
|
9
|
+
### 🧹 Chores
|
|
10
|
+
|
|
11
|
+
- Update CometAPIChatGenerator default model to gpt-5-mini and remove e… (#2559)
|
|
12
|
+
|
|
13
|
+
### 🌀 Miscellaneous
|
|
14
|
+
|
|
15
|
+
- Add missing config file for Docusaurus sync (#2505)
|
|
16
|
+
- Adopt PEP 585 type hinting (part 3) (#2510)
|
|
17
|
+
|
|
18
|
+
<!-- generated by git-cliff -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cometapi-haystack
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.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
|
|
@@ -11,15 +11,14 @@ License-File: LICENSE.txt
|
|
|
11
11
|
Classifier: Development Status :: 4 - Beta
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.13
|
|
19
18
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
19
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
21
|
-
Requires-Python: >=3.
|
|
22
|
-
Requires-Dist: haystack-ai>=2.
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: haystack-ai>=2.22.0
|
|
23
22
|
Description-Content-Type: text/markdown
|
|
24
23
|
|
|
25
24
|
# cometapi-haystack
|
|
@@ -7,7 +7,7 @@ name = "cometapi-haystack"
|
|
|
7
7
|
dynamic = ["version"]
|
|
8
8
|
description = 'Use Comet API with Haystack to build AI applications with 500+ AI models.'
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
11
|
license = "Apache-2.0"
|
|
12
12
|
keywords = []
|
|
13
13
|
authors = [
|
|
@@ -18,7 +18,6 @@ classifiers = [
|
|
|
18
18
|
"License :: OSI Approved :: Apache Software License",
|
|
19
19
|
"Development Status :: 4 - Beta",
|
|
20
20
|
"Programming Language :: Python",
|
|
21
|
-
"Programming Language :: Python :: 3.9",
|
|
22
21
|
"Programming Language :: Python :: 3.10",
|
|
23
22
|
"Programming Language :: Python :: 3.11",
|
|
24
23
|
"Programming Language :: Python :: 3.12",
|
|
@@ -26,7 +25,7 @@ classifiers = [
|
|
|
26
25
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
27
26
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
28
27
|
]
|
|
29
|
-
dependencies = ["haystack-ai>=2.
|
|
28
|
+
dependencies = ["haystack-ai>=2.22.0",]
|
|
30
29
|
|
|
31
30
|
[project.urls]
|
|
32
31
|
Documentation = "https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/cometapi#readme"
|
|
@@ -49,8 +48,8 @@ installer = "uv"
|
|
|
49
48
|
dependencies = ["haystack-pydoc-tools", "ruff"]
|
|
50
49
|
|
|
51
50
|
[tool.hatch.envs.default.scripts]
|
|
52
|
-
docs = ["pydoc-markdown pydoc/
|
|
53
|
-
fmt = "ruff check --fix {args}
|
|
51
|
+
docs = ["pydoc-markdown pydoc/config_docusaurus.yml"]
|
|
52
|
+
fmt = "ruff check --fix {args}; ruff format {args}"
|
|
54
53
|
fmt-check = "ruff check {args} && ruff format --check {args}"
|
|
55
54
|
|
|
56
55
|
[tool.hatch.envs.test]
|
|
@@ -85,7 +84,6 @@ module = [
|
|
|
85
84
|
ignore_missing_imports = true
|
|
86
85
|
|
|
87
86
|
[tool.ruff]
|
|
88
|
-
target-version = "py39"
|
|
89
87
|
line-length = 120
|
|
90
88
|
|
|
91
89
|
[tool.ruff.lint]
|
|
@@ -138,10 +136,6 @@ ignore = [
|
|
|
138
136
|
# Allow function call argument defaults e.g. `Secret.from_env_var`
|
|
139
137
|
"B008",
|
|
140
138
|
]
|
|
141
|
-
unfixable = [
|
|
142
|
-
# Don't touch unused imports
|
|
143
|
-
"F401",
|
|
144
|
-
]
|
|
145
139
|
|
|
146
140
|
[tool.ruff.lint.isort]
|
|
147
141
|
known-first-party = ["haystack_integrations"]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any
|
|
1
|
+
from typing import Any
|
|
2
2
|
|
|
3
3
|
from haystack.components.generators.chat import OpenAIChatGenerator
|
|
4
4
|
from haystack.dataclasses import StreamingCallbackT
|
|
@@ -34,13 +34,13 @@ class CometAPIChatGenerator(OpenAIChatGenerator):
|
|
|
34
34
|
*,
|
|
35
35
|
api_key: Secret = Secret.from_env_var("COMET_API_KEY"),
|
|
36
36
|
model: str = "gpt-5-mini",
|
|
37
|
-
streaming_callback:
|
|
38
|
-
generation_kwargs:
|
|
39
|
-
timeout:
|
|
40
|
-
max_retries:
|
|
41
|
-
tools:
|
|
37
|
+
streaming_callback: StreamingCallbackT | None = None,
|
|
38
|
+
generation_kwargs: dict[str, Any] | None = None,
|
|
39
|
+
timeout: int | None = None,
|
|
40
|
+
max_retries: int | None = None,
|
|
41
|
+
tools: list[Tool | Toolset] | Toolset | None = None,
|
|
42
42
|
tools_strict: bool = False,
|
|
43
|
-
http_client_kwargs:
|
|
43
|
+
http_client_kwargs: dict[str, Any] | None = None,
|
|
44
44
|
):
|
|
45
45
|
api_base_url = "https://api.cometapi.com/v1"
|
|
46
46
|
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
loaders:
|
|
2
|
-
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
|
|
3
|
-
search_path: [../src]
|
|
4
|
-
modules: [
|
|
5
|
-
"haystack_integrations.components.generators.cometapi.chat.chat_generator",
|
|
6
|
-
]
|
|
7
|
-
ignore_when_discovered: ["__init__"]
|
|
8
|
-
processors:
|
|
9
|
-
- type: filter
|
|
10
|
-
expression:
|
|
11
|
-
documented_only: true
|
|
12
|
-
do_not_filter_modules: false
|
|
13
|
-
skip_empty_modules: true
|
|
14
|
-
- type: smart
|
|
15
|
-
- type: crossref
|
|
16
|
-
renderer:
|
|
17
|
-
type: haystack_pydoc_tools.renderers.ReadmeIntegrationRenderer
|
|
18
|
-
excerpt: Comet API integration for Haystack
|
|
19
|
-
category_slug: integrations-api
|
|
20
|
-
title: Comet API
|
|
21
|
-
slug: integrations-cometapi
|
|
22
|
-
order: 91
|
|
23
|
-
markdown:
|
|
24
|
-
descriptive_class_title: false
|
|
25
|
-
classdef_code_block: false
|
|
26
|
-
descriptive_module_title: true
|
|
27
|
-
add_method_class_prefix: true
|
|
28
|
-
add_member_class_prefix: false
|
|
29
|
-
filename: _readme_cometapi.md
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cometapi_haystack-1.1.0 → cometapi_haystack-2.0.0}/tests/test_cometapi_chat_generator_async.py
RENAMED
|
File without changes
|