Skip to content

Commit f68ff7f

Browse files
committed
Add optional return types
1 parent d543fc4 commit f68ff7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ldai/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@ def __init__(self, id: str, temperature: Optional[float] = None,
3535
self._attributes = attributes
3636

3737
@property
38-
def id(self):
38+
def id(self) -> str:
3939
"""
4040
The ID of the model.
4141
"""
4242
return self._id
4343

4444
@property
45-
def temperature(self):
45+
def temperature(self) -> Optional[float]:
4646
""""
4747
Turning parameter for randomness versus determinism. Exact effect will be determined by the model.
4848
"""
4949
return self._temperature
5050

5151
@property
52-
def max_tokens(self):
52+
def max_tokens(self) -> Optional[int]:
5353
"""
5454
The maximum number of tokens.
5555
"""
5656

5757
return self._max_tokens
5858

59-
def get_attribute(self, key: str):
59+
def get_attribute(self, key: str) -> Any:
6060
"""
6161
Retrieve model-specific attributes.
6262

0 commit comments

Comments
 (0)