Skip to content

Commit 2a90fb9

Browse files
things
1 parent 733e123 commit 2a90fb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cascadia/QueryExtension/GithubCopilotLLMProvider.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation
247247

248248
// Make sure we are on the background thread for the http request
249249
auto strongThis = get_strong();
250-
251250
co_await winrt::resume_background();
252251
auto cancellationToken{ co_await winrt::get_cancellation_token() };
253252

@@ -297,7 +296,7 @@ namespace winrt::Microsoft::Terminal::Query::Extension::implementation
297296
}
298297
else
299298
{
300-
const auto choices = jsonResult.GetNamedArray(L"ayy");
299+
const auto choices = jsonResult.GetNamedArray(choicesKey);
301300
const auto firstChoice = choices.GetAt(0).GetObject();
302301
const auto messageObject = firstChoice.GetNamedObject(messageKey);
303302
message = messageObject.GetNamedString(contentKey);

0 commit comments

Comments
 (0)