Skip to content

Conversation

Cryptoc1
Copy link

This PR updates ChatSession.InitializeSessionFromHistoryAsync to accept an optional CancellationToken parameter (this method is is quite long-running in my application, so I need to be able to cancel it).

To facilitate functionality of this token, various async methods defined in the LlamaExecutorBase have also been updated to accept an optional CancellationToken, and implementations updated to pass the token down the call-stack.

This PR additionally addresses minor compiler errors, such as CS1998, relating to "async method not awaited".

These changes could be considered a "breaking" API change, as any user implementations of LlamaExecutorBase would cease to compile.

  • [NEW] support cancellation of ChatSession.InitializeSessionFromHistoryAsync
  • [NEW] improve usage of CancellationTokens in LlamaExecutorBase
  • [FIX] CS1998 warnings

- [NEW] support cancellation of `ChatSession.InitializeSessionFromHistoryAsync`
- [NEW] improve usage of `CancellationToken`s in `LlamaExecutorBase`
- [FIX] `CS1998` warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant