Skip to content

Commit 0d0735a

Browse files
committed
fix: use Sequence type and explicitly export new attributes
1 parent 9ddd2bf commit 0d0735a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 10.6.2
4+
5+
- Fix typing and attribute exports
6+
37
## 10.6.1
48

59
- Fix imports for OpenAI compatible embeddings

aleph_alpha_client/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
"DetokenizationResponse",
6868
"Document",
6969
"EmbeddingRequest",
70+
"EmbeddingV2Request",
7071
"EmbeddingResponse",
72+
"EmbeddingV2Response",
7173
"EvaluationRequest",
7274
"EvaluationResponse",
7375
"Explanation",

aleph_alpha_client/chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from dataclasses import asdict, dataclass
33
from enum import Enum
44
from io import BytesIO
5-
from typing import Any, Dict, List, Mapping, Optional, Union
5+
from typing import Any, Dict, List, Mapping, Optional, Sequence, Union
66

77
from aleph_alpha_client.steering import SteeringConceptCreationResponse
88
from aleph_alpha_client.structured_output import ResponseFormat
@@ -128,7 +128,7 @@ class ChatRequest:
128128
"""
129129

130130
model: str
131-
messages: List[Union[Message, TextMessage]]
131+
messages: Sequence[Union[Message, TextMessage]]
132132
maximum_tokens: Optional[int] = None
133133
temperature: Optional[float] = None
134134
top_k: Optional[int] = None

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "aleph-alpha-client"
3-
version = "10.6.1"
3+
version = "10.6.2"
44
description = "python client to interact with Aleph Alpha api endpoints"
55
authors = [{ name = "Aleph Alpha", email = "support@aleph-alpha.com" }]
66
requires-python = ">=3.9,<3.14"

0 commit comments

Comments
 (0)