openrouter-haystack 0.2.1__tar.gz → 0.2.2__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.
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/CHANGELOG.md +11 -6
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/PKG-INFO +7 -13
- openrouter_haystack-0.2.2/README.md +15 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/src/haystack_integrations/components/generators/openrouter/chat/chat_generator.py +1 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/tests/test_openrouter_chat_generator.py +2 -2
- openrouter_haystack-0.2.1/README.md +0 -21
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/.gitignore +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/LICENSE.txt +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/examples/openrouter_with_tools_example.py +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/pydoc/config.yml +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/pyproject.toml +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/src/haystack_integrations/components/generators/openrouter/__init__.py +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/src/haystack_integrations/components/generators/openrouter/chat/__init__.py +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/src/haystack_integrations/components/generators/py.typed +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/tests/__init__.py +0 -0
- {openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/tests/test_openrouter_chat_generator_async.py +0 -0
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [integrations/openrouter-v0.2.1] - 2025-08-07
|
|
4
|
+
|
|
5
|
+
### 🚀 Features
|
|
6
|
+
|
|
7
|
+
- Add ToolSet support and check streaming chunk conversion works as expected in OpenRouterChatGenerator (#1965)
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
## [integrations/openrouter-v0.2.0] - 2025-07-01
|
|
4
11
|
|
|
12
|
+
### 🚀 Features
|
|
13
|
+
|
|
14
|
+
- Add OpenRouter integration (#1723)
|
|
15
|
+
|
|
5
16
|
### 🐛 Bug Fixes
|
|
6
17
|
|
|
7
18
|
- Fix openrouter types + add py.typed (#2029)
|
|
@@ -16,10 +27,4 @@
|
|
|
16
27
|
|
|
17
28
|
- Test: Remove `test_check_abnormal_completions` - already tested in Haystack (#1842)
|
|
18
29
|
|
|
19
|
-
## [integrations/openrouter-v1.0.0] - 2025-05-19
|
|
20
|
-
|
|
21
|
-
### 🚀 Features
|
|
22
|
-
|
|
23
|
-
- Support OpenRouter API as a Chat Generator (#1723)
|
|
24
|
-
|
|
25
30
|
<!-- generated by git-cliff -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openrouter-haystack
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/openrouter#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/openrouter
|
|
@@ -26,19 +26,13 @@ Description-Content-Type: text/markdown
|
|
|
26
26
|
[](https://pypi.org/project/openrouter-haystack)
|
|
27
27
|
[](https://pypi.org/project/openrouterhaystack)
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
- [Integration page](https://haystack.deepset.ai/integrations/openrouter)
|
|
30
|
+
- [Changelog](https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/openrouter/CHANGELOG.md)
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
---
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
- [License](#license)
|
|
34
|
+
## Contributing
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Refer to the general [Contribution Guidelines](https://github.com/deepset-ai/haystack-core-integrations/blob/main/CONTRIBUTING.md).
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
pip install openrouter-haystack
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## License
|
|
43
|
-
|
|
44
|
-
`openrouter-haystack` is distributed under the terms of the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) license.
|
|
38
|
+
To run integration tests locally, you need to export the `OPENROUTER_API_KEY` environment variable.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# openrouter-haystack
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/openrouter-haystack)
|
|
4
|
+
[](https://pypi.org/project/openrouterhaystack)
|
|
5
|
+
|
|
6
|
+
- [Integration page](https://haystack.deepset.ai/integrations/openrouter)
|
|
7
|
+
- [Changelog](https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/openrouter/CHANGELOG.md)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Contributing
|
|
12
|
+
|
|
13
|
+
Refer to the general [Contribution Guidelines](https://github.com/deepset-ai/haystack-core-integrations/blob/main/CONTRIBUTING.md).
|
|
14
|
+
|
|
15
|
+
To run integration tests locally, you need to export the `OPENROUTER_API_KEY` environment variable.
|
{openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/tests/test_openrouter_chat_generator.py
RENAMED
|
@@ -96,7 +96,7 @@ class TestOpenRouterChatGenerator:
|
|
|
96
96
|
|
|
97
97
|
def test_init_fail_wo_api_key(self, monkeypatch):
|
|
98
98
|
monkeypatch.delenv("OPENROUTER_API_KEY", raising=False)
|
|
99
|
-
with pytest.raises(ValueError, match="None of the .* environment variables are set"):
|
|
99
|
+
with pytest.raises(ValueError, match=r"None of the .* environment variables are set"):
|
|
100
100
|
OpenRouterChatGenerator()
|
|
101
101
|
|
|
102
102
|
def test_init_with_parameters(self):
|
|
@@ -223,7 +223,7 @@ class TestOpenRouterChatGenerator:
|
|
|
223
223
|
"max_retries": 10,
|
|
224
224
|
},
|
|
225
225
|
}
|
|
226
|
-
with pytest.raises(ValueError, match="None of the .* environment variables are set"):
|
|
226
|
+
with pytest.raises(ValueError, match=r"None of the .* environment variables are set"):
|
|
227
227
|
OpenRouterChatGenerator.from_dict(data)
|
|
228
228
|
|
|
229
229
|
def test_run(self, chat_messages, mock_chat_completion, monkeypatch): # noqa: ARG002
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# openrouter-haystack
|
|
2
|
-
|
|
3
|
-
[](https://pypi.org/project/openrouter-haystack)
|
|
4
|
-
[](https://pypi.org/project/openrouterhaystack)
|
|
5
|
-
|
|
6
|
-
-----
|
|
7
|
-
|
|
8
|
-
**Table of Contents**
|
|
9
|
-
|
|
10
|
-
- [Installation](#installation)
|
|
11
|
-
- [License](#license)
|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
```console
|
|
16
|
-
pip install openrouter-haystack
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## License
|
|
20
|
-
|
|
21
|
-
`openrouter-haystack` is distributed under the terms of the [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) license.
|
|
File without changes
|
|
File without changes
|
{openrouter_haystack-0.2.1 → openrouter_haystack-0.2.2}/examples/openrouter_with_tools_example.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|