cometapi-haystack 1.0.0__py3-none-any.whl → 2.0.0__py3-none-any.whl
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-1.0.0.dist-info → cometapi_haystack-2.0.0.dist-info}/METADATA +3 -4
- cometapi_haystack-2.0.0.dist-info/RECORD +7 -0
- {cometapi_haystack-1.0.0.dist-info → cometapi_haystack-2.0.0.dist-info}/WHEEL +1 -1
- haystack_integrations/components/generators/cometapi/chat/chat_generator.py +10 -10
- cometapi_haystack-1.0.0.dist-info/RECORD +0 -7
- {cometapi_haystack-1.0.0.dist-info → cometapi_haystack-2.0.0.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -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
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
haystack_integrations/components/generators/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
haystack_integrations/components/generators/cometapi/__init__.py,sha256=NhfpuefQUSWmMQ3oZ0bavRiQ35Z0EdMeXF_-ORCnV1M,203
|
|
3
|
+
haystack_integrations/components/generators/cometapi/chat/chat_generator.py,sha256=evjt0KKEkNgWnQXS-WGdmxPH9yMVcf-yqMhhYseUoJ0,2599
|
|
4
|
+
cometapi_haystack-2.0.0.dist-info/METADATA,sha256=ohvF37XP2tWSvKBlgT_onSjfcPvgKftdFV2YcIDbKnQ,1911
|
|
5
|
+
cometapi_haystack-2.0.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
+
cometapi_haystack-2.0.0.dist-info/licenses/LICENSE.txt,sha256=nJOjilTInDpTuBqBSK2Aqb8SsVXTcy2oZpaZPuxDu18,10807
|
|
7
|
+
cometapi_haystack-2.0.0.dist-info/RECORD,,
|
|
@@ -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
|
|
@@ -16,8 +16,8 @@ class CometAPIChatGenerator(OpenAIChatGenerator):
|
|
|
16
16
|
|
|
17
17
|
:param api_key: The API key for authenticating with the CometAPI. Defaults to
|
|
18
18
|
loading from the "COMET_API_KEY" environment variable.
|
|
19
|
-
:param model: The name of the model to use for chat generation (e.g., "gpt-
|
|
20
|
-
Defaults to "gpt-
|
|
19
|
+
:param model: The name of the model to use for chat generation (e.g., "gpt-5-mini", "grok-3-mini").
|
|
20
|
+
Defaults to "gpt-5-mini".
|
|
21
21
|
:param streaming_callback: An optional callable that will be called with each chunk of
|
|
22
22
|
a streaming response.
|
|
23
23
|
:param generation_kwargs: Optional keyword arguments to pass to the underlying generation
|
|
@@ -33,14 +33,14 @@ class CometAPIChatGenerator(OpenAIChatGenerator):
|
|
|
33
33
|
self,
|
|
34
34
|
*,
|
|
35
35
|
api_key: Secret = Secret.from_env_var("COMET_API_KEY"),
|
|
36
|
-
model: str = "gpt-
|
|
37
|
-
streaming_callback:
|
|
38
|
-
generation_kwargs:
|
|
39
|
-
timeout:
|
|
40
|
-
max_retries:
|
|
41
|
-
tools:
|
|
36
|
+
model: str = "gpt-5-mini",
|
|
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,7 +0,0 @@
|
|
|
1
|
-
haystack_integrations/components/generators/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
haystack_integrations/components/generators/cometapi/__init__.py,sha256=NhfpuefQUSWmMQ3oZ0bavRiQ35Z0EdMeXF_-ORCnV1M,203
|
|
3
|
-
haystack_integrations/components/generators/cometapi/chat/chat_generator.py,sha256=X6xJlD2RrKwvdRmZBYlEXzsy4UxWVfcKiPZoYULkOGs,2661
|
|
4
|
-
cometapi_haystack-1.0.0.dist-info/METADATA,sha256=XwTIsG7oOesOYAnPyK7anInwe0iR1oXPKhMnf54OAkA,1960
|
|
5
|
-
cometapi_haystack-1.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
-
cometapi_haystack-1.0.0.dist-info/licenses/LICENSE.txt,sha256=nJOjilTInDpTuBqBSK2Aqb8SsVXTcy2oZpaZPuxDu18,10807
|
|
7
|
-
cometapi_haystack-1.0.0.dist-info/RECORD,,
|
{cometapi_haystack-1.0.0.dist-info → cometapi_haystack-2.0.0.dist-info}/licenses/LICENSE.txt
RENAMED
|
File without changes
|