You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the returned value from respond contain a suitable cancel property. Depending on the internal architecture this might not be feasible.
For me to use complete, and convert the ChatHistoryLikehistory into a single text prompt on my side, so that I can use complete.cancel. I assume such a function exists somewhere within lmstudio.js internals, is it exported in the built package? If not, can someone point me to the relevant source?
I'm open to alternative suggestions - I'd love to be able to cancel requests for my use-case, and the respond API feels more suitable for my needs.
The text was updated successfully, but these errors were encountered:
Smilebags
changed the title
cancel support for LLMDynamicHandle.respond.cancel support for LLMDynamicHandle.respondJan 19, 2025
As in the title, I would like to be able to call
cancel
on the returned object fromLLMDynamicHandle.respond
like is available forLLMDynamicHandle.complete
.I can see two ways to achieve this:
respond
contain a suitablecancel
property. Depending on the internal architecture this might not be feasible.complete
, and convert theChatHistoryLike
history
into a single text prompt on my side, so that I can usecomplete.cancel
. I assume such a function exists somewhere withinlmstudio.js
internals, is it exported in the built package? If not, can someone point me to the relevant source?I'm open to alternative suggestions - I'd love to be able to cancel requests for my use-case, and the
respond
API feels more suitable for my needs.The text was updated successfully, but these errors were encountered: