File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " lmstudio"
3
- version = " 1.3.0 "
3
+ version = " 1.3.1 "
4
4
description = " LM Studio Python SDK"
5
5
authors = [
6
6
{name = " LM Studio" , email = " team@lmstudio.ai" },
Original file line number Diff line number Diff line change 1
1
"""LM Studio Python SDK."""
2
2
3
- __version__ = "1.3.0 "
3
+ __version__ = "1.3.1 "
4
4
5
5
6
6
# In addition to publishing the main SDK client API,
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ def _handle_invalid_request(
285
285
tool_failure_exc = request_failures [0 ]
286
286
assert isinstance (tool_failure_exc , LMStudioPredictionError )
287
287
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
You can’t perform that action at this time.
0 commit comments