Skip to content

Commit ab97990

Browse files
committed
fix: Fixed issues after update OpenAPI spec.
1 parent 322fd33 commit ab97990

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/libs/tryAGI.OpenAI/AssistantClient.CreateRun.AsStream.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ public partial class AssistantsClient
211211
Stream = stream,
212212
MaxPromptTokens = maxPromptTokens,
213213
MaxCompletionTokens = maxCompletionTokens,
214-
TruncationStrategy = truncationStrategy,
214+
TruncationStrategy = truncationStrategy != null
215+
? (global::tryAGI.OpenAI.AllOf<global::tryAGI.OpenAI.TruncationObject, object>?)truncationStrategy
216+
: null,
215217
ToolChoice = toolChoice,
216218
ParallelToolCalls = parallelToolCalls,
217219
ResponseFormat = responseFormat,

src/libs/tryAGI.OpenAI/ChatClient.CreateChatCompletion.As.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public partial class ChatClient
6363
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionModalitie>? modalities = default,
6464
global::tryAGI.OpenAI.CreateChatCompletionRequestAudio? audio = default,
6565
double? presencePenalty = default,
66-
global::tryAGI.OpenAI.ResponseFormat? responseFormat = default,
66+
global::tryAGI.OpenAI.ResponseFormat3? responseFormat = default,
6767
int? seed = default,
6868
global::tryAGI.OpenAI.CreateChatCompletionRequestServiceTier? serviceTier = default,
6969
global::tryAGI.OpenAI.OneOf<string, global::System.Collections.Generic.IList<string>>? stop = default,
@@ -170,7 +170,7 @@ public partial class ChatClient
170170
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionModalitie>? modalities = default,
171171
global::tryAGI.OpenAI.CreateChatCompletionRequestAudio? audio = default,
172172
double? presencePenalty = default,
173-
global::tryAGI.OpenAI.ResponseFormat? responseFormat = default,
173+
global::tryAGI.OpenAI.ResponseFormat3? responseFormat = default,
174174
int? seed = default,
175175
global::tryAGI.OpenAI.CreateChatCompletionRequestServiceTier? serviceTier = default,
176176
global::tryAGI.OpenAI.OneOf<string, global::System.Collections.Generic.IList<string>>? stop = default,

src/libs/tryAGI.OpenAI/ChatClient.CreateChatCompletion.AsStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public partial class ChatClient
210210
int? maxCompletionTokens = default,
211211
int? n = 1,
212212
double? presencePenalty = 0,
213-
global::tryAGI.OpenAI.ResponseFormat? responseFormat = default,
213+
global::tryAGI.OpenAI.ResponseFormat3? responseFormat = default,
214214
int? seed = default,
215215
global::tryAGI.OpenAI.CreateChatCompletionRequestServiceTier? serviceTier = default,
216216
global::tryAGI.OpenAI.OneOf<string, global::System.Collections.Generic.IList<string>>? stop = default,

src/libs/tryAGI.OpenAI/tryAGI.OpenAI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
</PackageReference>
3131
<PackageReference Include="Tiktoken" Version="2.2.0" />
32-
<PackageReference Include="System.Text.Json" Version="9.0.0" />
32+
<PackageReference Include="System.Text.Json" Version="9.0.1" />
3333
</ItemGroup>
3434

3535
<ItemGroup Condition="'$(TargetFramework)' == 'net4.6.2'">

0 commit comments

Comments
 (0)