Skip to content

Commit

Permalink
Add in Chat Completion + ML Feature (#5)
Browse files Browse the repository at this point in the history
**Summary**
This PR adds in chat completion so that it can be used by the Azure Open
AI Endpoint.

---------

Co-authored-by: Sophia Chen <sophia.six.chen@gmail.com>
  • Loading branch information
chenss3 and Sophia Chen committed Mar 30, 2023
1 parent 7ce07b1 commit 2b58a3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenAI.WinRT.nuspec
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>OpenAI.WinRT</id>
<version>0.0.9</version>
<version>0.0.10</version>
<title>OpenAI.WinRT</title>
<authors>Alexander Sklar</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
2 changes: 1 addition & 1 deletion OpenAIClient.cpp
Expand Up @@ -452,7 +452,7 @@ namespace winrt::OpenAI::implementation
));

auto content = winrt::HttpStringContent(requestJson, winrt::UnicodeEncoding::Utf8, L"application/json");
auto uri = Windows::Foundation::Uri{ gpt35turboEndpoint };
auto uri = m_useBearerTokenAuthorization ? Windows::Foundation::Uri{ gpt35turboEndpoint } : CompletionUri();
auto response = co_await m_client.PostAsync(uri, content);
auto responseJsonStr = co_await response.Content().ReadAsStringAsync();
statusCode = response.StatusCode();
Expand Down

0 comments on commit 2b58a3e

Please sign in to comment.