Skip to content

v0.16.0

Choose a tag to compare

@Albert-Gao Albert-Gao released this 09 Oct 23:51
b502ee1

Add synchronous and asynchronous agent and tenant model spending-limit settings and status methods. Pass spending_limit=None to disable a limit.

Export SpendingLimitStopEvent and SpendingLimitStopData for explicit event decoding. The event requires type="data-model-spending-limit", transient=True, and the typed spending details with code="model_spending_limit_exceeded". The raw chat stream continues to return the server's original bytes.