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 11[project ]
22name = " lmstudio"
3- version = " 1.3.0 "
3+ version = " 1.3.1 "
44description = " LM Studio Python SDK"
55authors = [
66 {
name =
" LM Studio" ,
email =
" [email protected] " },
Original file line number Diff line number Diff line change 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,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments