Skip to content

Commit

Permalink
camel
Browse files Browse the repository at this point in the history
  • Loading branch information
PankajBhojwani committed Nov 22, 2024
1 parent 48debd9 commit 2fece13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/cascadia/QueryExtension/AzureLLMProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation

winrt::Windows::Foundation::IAsyncOperation<Extension::IResponse> AzureLLMProvider::GetResponseAsync(const winrt::hstring& userPrompt)
{
auto cancelation_token{ co_await winrt::get_cancellation_token() };
cancelation_token.callback([=] {
auto cancellationToken{ co_await winrt::get_cancellation_token() };
cancellationToken.callback([=] {
if (_lastRequest)
{
_lastRequest.Cancel();
Expand Down
4 changes: 2 additions & 2 deletions src/cascadia/QueryExtension/GithubCopilotLLMProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation

winrt::Windows::Foundation::IAsyncOperation<Extension::IResponse> GithubCopilotLLMProvider::GetResponseAsync(const winrt::hstring& userPrompt)
{
auto cancelation_token{ co_await winrt::get_cancellation_token() };
cancelation_token.callback([=] {
auto cancellationToken{ co_await winrt::get_cancellation_token() };
cancellationToken.callback([=] {
if (_lastRequest)
{
_lastRequest.Cancel();
Expand Down
4 changes: 2 additions & 2 deletions src/cascadia/QueryExtension/OpenAILLMProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation

winrt::Windows::Foundation::IAsyncOperation<Extension::IResponse> OpenAILLMProvider::GetResponseAsync(const winrt::hstring userPrompt)
{
auto cancelation_token{ co_await winrt::get_cancellation_token() };
cancelation_token.callback([=] {
auto cancellationToken{ co_await winrt::get_cancellation_token() };
cancellationToken.callback([=] {
if (_lastRequest)
{
_lastRequest.Cancel();
Expand Down

0 comments on commit 2fece13

Please sign in to comment.