Skip to content

Commit 96ef111

Browse files
committed
chore: pin llama-stack; X|Y typing
1 parent 3628695 commit 96ef111

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

integrations/llama_stack/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers = [
2020
"Programming Language :: Python :: Implementation :: CPython",
2121
"Programming Language :: Python :: Implementation :: PyPy",
2222
]
23-
dependencies = ["haystack-ai>=2.19.0", "llama-stack>=0.2.17"]
23+
dependencies = ["haystack-ai>=2.22.0", "llama-stack>=0.2.17,<0.4.0"]
2424

2525
[project.urls]
2626
Documentation = "https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/llama-stack#readme"

integrations/llama_stack/src/haystack_integrations/components/generators/llama_stack/chat/chat_generator.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from typing import Any, Optional
5+
from typing import Any
66

77
from haystack import component, default_from_dict, default_to_dict, logging
88
from haystack.components.generators.chat import OpenAIChatGenerator
@@ -60,14 +60,14 @@ def __init__(
6060
*,
6161
model: str,
6262
api_base_url: str = "http://localhost:8321/v1/openai/v1",
63-
organization: Optional[str] = None,
64-
streaming_callback: Optional[StreamingCallbackT] = None,
65-
generation_kwargs: Optional[dict[str, Any]] = None,
66-
timeout: Optional[int] = None,
67-
tools: Optional[ToolsType] = None,
63+
organization: str | None = None,
64+
streaming_callback: StreamingCallbackT | None = None,
65+
generation_kwargs: dict[str, Any] | None = None,
66+
timeout: int | None = None,
67+
tools: ToolsType | None = None,
6868
tools_strict: bool = False,
69-
max_retries: Optional[int] = None,
70-
http_client_kwargs: Optional[dict[str, Any]] = None,
69+
max_retries: int | None = None,
70+
http_client_kwargs: dict[str, Any] | None = None,
7171
):
7272
"""
7373
Creates an instance of LlamaStackChatGenerator. To use this chat generator,

0 commit comments

Comments
 (0)