Skip to content

Commit

Permalink
OpenAI-DotNet 7.3.7 (#191)
Browse files Browse the repository at this point in the history
- Fixes streaming with tools not being property copied over
  • Loading branch information
Mitch528 authored Nov 28, 2023
1 parent 9354127 commit bdd720d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Chat/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ internal void CopyFrom(Delta other)
{
if (otherToolCall.Index + 1 > toolCalls.Count)
{
toolCalls.Insert(otherToolCall.Index.Value, otherToolCall);
toolCalls.Insert(otherToolCall.Index.Value, new Tool(otherToolCall));
}

toolCalls[otherToolCall.Index.Value].CopyFrom(otherToolCall);
Expand Down
6 changes: 4 additions & 2 deletions OpenAI-DotNet/OpenAI-DotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ More context [on Roger Pincombe's blog](https://rogerpincombe.com/openai-dotnet-
<RepositoryUrl>https://github.com/RageAgainstThePixel/OpenAI-DotNet</RepositoryUrl>
<PackageTags>OpenAI, AI, ML, API, gpt-4, gpt-3.5-tubo, gpt-3, chatGPT, chat-gpt, gpt-2, gpt, dall-e-2, dall-e-3</PackageTags>
<Title>OpenAI API</Title>
<Version>7.3.6</Version>
<PackageReleaseNotes>Version 7.3.6
<Version>7.3.7</Version>
<PackageReleaseNotes>Version 7.3.7
- Fixes streaming with tools not being property copied over
Version 7.3.6
- Fixed ArgumentOutOfRangeException when streaming chat completion response contains more than one tool
Version 7.3.5
- Added GetModerationChunkedAsync method in ModerationsEndpoint
Expand Down

0 comments on commit bdd720d

Please sign in to comment.