aimlapi-haystack 2.0.0__py3-none-any.whl → 3.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.
- {aimlapi_haystack-2.0.0.dist-info → aimlapi_haystack-3.0.0.dist-info}/METADATA +6 -5
- aimlapi_haystack-3.0.0.dist-info/RECORD +8 -0
- {aimlapi_haystack-2.0.0.dist-info → aimlapi_haystack-3.0.0.dist-info}/WHEEL +1 -1
- {aimlapi_haystack-2.0.0.dist-info → aimlapi_haystack-3.0.0.dist-info}/licenses/LICENSE.txt +1 -1
- haystack_integrations/components/generators/aimlapi/chat/chat_generator.py +5 -5
- aimlapi_haystack-2.0.0.dist-info/RECORD +0 -8
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: aimlapi-haystack
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/aimlapi#readme
|
|
5
5
|
Project-URL: Issues, https://github.com/deepset-ai/haystack-core-integrations/issues
|
|
6
6
|
Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/aimlapi
|
|
7
|
-
Author-email: "Dmitry <D1m7asis> Tumanov" <d1m7asis@gmail.com>
|
|
7
|
+
Author-email: deepset GmbH <info@deepset.ai>, "Dmitry <D1m7asis> Tumanov" <d1m7asis@gmail.com>
|
|
8
8
|
License-Expression: Apache-2.0
|
|
9
9
|
License-File: LICENSE.txt
|
|
10
10
|
Classifier: Development Status :: 4 - Beta
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Programming Language :: Python
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
17
18
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
18
19
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
19
|
-
Requires-Python: >=3.
|
|
20
|
+
Requires-Python: >=3.11
|
|
20
21
|
Requires-Dist: haystack-ai>=2.22.0
|
|
21
22
|
Description-Content-Type: text/markdown
|
|
22
23
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
haystack_integrations/components/generators/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
haystack_integrations/components/generators/aimlapi/__init__.py,sha256=QVmh_YP8EKx4gjxrqQ54dzZEZewtjtd1MgsjjJolxpI,90
|
|
3
|
+
haystack_integrations/components/generators/aimlapi/chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
haystack_integrations/components/generators/aimlapi/chat/chat_generator.py,sha256=PqkE-pTx8A1c7bI6RMXKmDkb1tviTI8bQr39lnF_1JI,9870
|
|
5
|
+
aimlapi_haystack-3.0.0.dist-info/METADATA,sha256=WFLM5FNvFAO7nu4RPF1P_rcnwzp00aNWwR3MhqYhQMM,1881
|
|
6
|
+
aimlapi_haystack-3.0.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
7
|
+
aimlapi_haystack-3.0.0.dist-info/licenses/LICENSE.txt,sha256=uzzy9ltYNge367fW8mo54Vr-dKlRNoddNEV5nB1ScUM,10273
|
|
8
|
+
aimlapi_haystack-3.0.0.dist-info/RECORD,,
|
|
@@ -58,7 +58,7 @@ APPENDIX: How to apply the Apache License to your work.
|
|
|
58
58
|
|
|
59
59
|
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
|
60
60
|
|
|
61
|
-
Copyright 2025
|
|
61
|
+
Copyright 2025-present deepset GmbH
|
|
62
62
|
|
|
63
63
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
64
64
|
you may not use this file except in compliance with the License.
|
|
@@ -20,6 +20,7 @@ AIMLAPI_HEADERS = {"HTTP-Referer": "https://github.com/deepset-ai/haystack-core-
|
|
|
20
20
|
class AIMLAPIChatGenerator(OpenAIChatGenerator):
|
|
21
21
|
"""
|
|
22
22
|
Enables text generation using AIMLAPI generative models.
|
|
23
|
+
|
|
23
24
|
For supported models, see AIMLAPI documentation.
|
|
24
25
|
|
|
25
26
|
Users can pass any text generation parameters valid for the AIMLAPI chat completion API
|
|
@@ -71,10 +72,11 @@ class AIMLAPIChatGenerator(OpenAIChatGenerator):
|
|
|
71
72
|
extra_headers: dict[str, Any] | None = None,
|
|
72
73
|
max_retries: int | None = None,
|
|
73
74
|
http_client_kwargs: dict[str, Any] | None = None,
|
|
74
|
-
):
|
|
75
|
+
) -> None:
|
|
75
76
|
"""
|
|
76
|
-
Creates an instance of AIMLAPIChatGenerator.
|
|
77
|
-
|
|
77
|
+
Creates an instance of AIMLAPIChatGenerator.
|
|
78
|
+
|
|
79
|
+
Unless specified otherwise, the default model is `openai/gpt-5-chat-latest`.
|
|
78
80
|
|
|
79
81
|
:param api_key:
|
|
80
82
|
The AIMLAPI API key.
|
|
@@ -192,8 +194,6 @@ class AIMLAPIChatGenerator(OpenAIChatGenerator):
|
|
|
192
194
|
raise ValueError(msg)
|
|
193
195
|
response_format = generation_kwargs.pop("response_format", None)
|
|
194
196
|
|
|
195
|
-
response_format = generation_kwargs.pop("response_format", None)
|
|
196
|
-
|
|
197
197
|
base_args = {
|
|
198
198
|
"model": self.model,
|
|
199
199
|
"messages": aimlapi_formatted_messages,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
haystack_integrations/components/generators/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
haystack_integrations/components/generators/aimlapi/__init__.py,sha256=QVmh_YP8EKx4gjxrqQ54dzZEZewtjtd1MgsjjJolxpI,90
|
|
3
|
-
haystack_integrations/components/generators/aimlapi/chat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
haystack_integrations/components/generators/aimlapi/chat/chat_generator.py,sha256=RW1nRKGNG2Of3h-vNqCHoAOb2ZGmbVO9MhcalKyuSpk,9934
|
|
5
|
-
aimlapi_haystack-2.0.0.dist-info/METADATA,sha256=OyZQD4a1jtQCpzmUoqBjFW_FbUUyVefSnyqnhy7GBzc,1798
|
|
6
|
-
aimlapi_haystack-2.0.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
7
|
-
aimlapi_haystack-2.0.0.dist-info/licenses/LICENSE.txt,sha256=dBoNaaXH0arIHtfis5LQowOenGorOi0fqfeWub_w3kI,10262
|
|
8
|
-
aimlapi_haystack-2.0.0.dist-info/RECORD,,
|