Skip to content

Commit 810566f

Browse files
committed
Mark new public APIs
1 parent 5ec24d1 commit 810566f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lmstudio/sync_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,13 @@
155155
_DEFAULT_TIMEOUT: float | None = 60.0
156156

157157

158+
@sdk_public_api()
158159
def get_sync_api_timeout() -> float | None:
159160
"""Return the current default sync API timeout when waiting for server messages."""
160161
return _DEFAULT_TIMEOUT
161162

162163

164+
@sdk_public_api()
163165
def set_sync_api_timeout(timeout: float | None) -> None:
164166
"""Set the default sync API timeout when waiting for server messages."""
165167
global _DEFAULT_TIMEOUT

0 commit comments

Comments
 (0)