Skip to content

Commit 965d0e6

Browse files
committed
Prepare 1.3.1 release
Also tweaks the tool operation test case to tolerate more response variation.
1 parent 3384083 commit 965d0e6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lmstudio"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
description = "LM Studio Python SDK"
55
authors = [
66
{name = "LM Studio", email = "team@lmstudio.ai"},

src/lmstudio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""LM Studio Python SDK."""
22

3-
__version__ = "1.3.0"
3+
__version__ = "1.3.1"
44

55

66
# In addition to publishing the main SDK client API,

tests/test_inference.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def _handle_invalid_request(
285285
tool_failure_exc = request_failures[0]
286286
assert isinstance(tool_failure_exc, LMStudioPredictionError)
287287
assert isinstance(tool_failure_exc.__cause__, ZeroDivisionError)
288-
# If the content checks prove flaky in practice, they can be dropped
289-
assert "divide" in predictions[-1].content
290-
assert "zero" in predictions[-1].content
288+
# If the content checks prove too flaky in practice, they can be dropped
289+
completed_response = predictions[-1].content.lower()
290+
assert "divid" in completed_response # Accepts both "divide" and "dividing"
291+
assert "zero" in completed_response

0 commit comments

Comments
 (0)