Skip to content

Commit

Permalink
Update OpenAI-DotNet dependency (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkgv authored Jul 3, 2023
1 parent 755cae7 commit e35fba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Pinpoint.Plugin.OpenAI/OpenAIPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public async IAsyncEnumerable<AbstractQueryResult> Process(Query query, [Enumera
yield return new TitleOpenAIResult();

var userPrompt = query.RawQuery[1..];
var chatPrompts = new List<ChatPrompt>
var chatPrompts = new List<Message>
{
new("user", userPrompt),
new(Role.User, userPrompt),
};
var resp = await _client.ChatEndpoint.GetCompletionAsync(new ChatRequest(chatPrompts), ct);
if (resp is null)
Expand Down
2 changes: 1 addition & 1 deletion Pinpoint.Plugin.OpenAI/Pinpoint.Plugin.OpenAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="OpenAI-DotNet" Version="6.3.1" />
<PackageReference Include="OpenAI-DotNet" Version="7.0.3" />
</ItemGroup>

</Project>

0 comments on commit e35fba5

Please sign in to comment.