Skip to content

Commit 20daeef

Browse files
committed
Merge branch 'refs/heads/main' into realtime-cli
2 parents e046cf7 + 839416a commit 20daeef

File tree

38 files changed

+79
-197
lines changed

38 files changed

+79
-197
lines changed

.github/workflows/auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
auto-merge:
1313
runs-on: ubuntu-latest
14-
if: ${{ (github.actor == 'dependabot[bot]' || github.actor == 'HavenDV') && github.repository_owner == 'tryAGI' }}
14+
if: ${{ github.event.pull_request.draft == false && (github.actor == 'dependabot[bot]' || github.actor == 'HavenDV') && github.repository_owner == 'tryAGI' }}
1515
steps:
1616
- name: Dependabot metadata
1717
if: ${{ github.actor == 'dependabot[bot]' }}

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup .NET
2323
uses: actions/setup-dotnet@v4
2424
with:
25-
dotnet-version: 8.0.x
25+
dotnet-version: 9.0.x
2626

2727
- name: Restore
2828
run: dotnet restore

.github/workflows/pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
test:
99
name: Test
10+
if: github.event.pull_request.draft == false
1011
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
1112
with:
1213
generate-build-number: false

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public partial class AssistantsClient
221221
threadId: threadId,
222222
include: include,
223223
request: request,
224-
cancellationToken: cancellationToken))
224+
cancellationToken: cancellationToken).ConfigureAwait(false))
225225
{
226226
yield return response;
227227
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace OpenAI
77
{
88
public partial class ChatClient
99
{
10-
/// <inheritdoc cref="CreateChatCompletionAsync(System.Collections.Generic.IList{ChatCompletionRequestMessage},OpenAI.AnyOf{string?,CreateChatCompletionRequestModel?},bool?,System.Collections.Generic.Dictionary{string, string}?,double?,global::System.Collections.Generic.Dictionary{string, int}?,bool?,int?,int?,int?,System.Collections.Generic.IList{global::OpenAI.ChatCompletionModalitie}?,CreateChatCompletionRequestAudio?,double?,OpenAI.ResponseFormat?,int?,CreateChatCompletionRequestServiceTier?,OpenAI.OneOf{string?,System.Collections.Generic.IList{string}}?,bool?,ChatCompletionStreamOptions?,double?,double?,System.Collections.Generic.IList{ChatCompletionTool}?,ChatCompletionToolChoiceOption?,bool?,string?,System.Threading.CancellationToken)"/>
10+
/// <inheritdoc cref="CreateChatCompletionAsync(System.Collections.Generic.IList{ChatCompletionRequestMessage},OpenAI.AnyOf{string?,CreateChatCompletionRequestModel?},bool?,System.Collections.Generic.Dictionary{string, string}?,double?,global::System.Collections.Generic.Dictionary{string, int}?,bool?,int?,int?,int?,System.Collections.Generic.IList{global::OpenAI.ChatCompletionModalitie}?,global::OpenAI.PredictionContent?,CreateChatCompletionRequestAudio?,double?,OpenAI.ResponseFormat?,int?,CreateChatCompletionRequestServiceTier?,OpenAI.OneOf{string?,System.Collections.Generic.IList{string}}?,bool?,ChatCompletionStreamOptions?,double?,double?,System.Collections.Generic.IList{ChatCompletionTool}?,ChatCompletionToolChoiceOption?,bool?,string?,System.Threading.CancellationToken)"/>
1111
#if NET6_0_OR_GREATER
1212
[RequiresUnreferencedCode(
1313
"This method uses reflection to generate a JSON schema. Use overload with JsonTypeInfo parameter to avoid this.")]
@@ -87,7 +87,7 @@ public partial class ChatClient
8787
response);
8888
}
8989

90-
/// <inheritdoc cref="CreateChatCompletionAsync(System.Collections.Generic.IList{ChatCompletionRequestMessage},OpenAI.AnyOf{string?,CreateChatCompletionRequestModel?},bool?,System.Collections.Generic.Dictionary{string, string}?,double?,global::System.Collections.Generic.Dictionary{string, int}?,bool?,int?,int?,int?,System.Collections.Generic.IList{global::OpenAI.ChatCompletionModalitie}?,CreateChatCompletionRequestAudio?,double?,OpenAI.ResponseFormat?,int?,CreateChatCompletionRequestServiceTier?,OpenAI.OneOf{string?,System.Collections.Generic.IList{string}}?,bool?,ChatCompletionStreamOptions?,double?,double?,System.Collections.Generic.IList{ChatCompletionTool}?,ChatCompletionToolChoiceOption?,bool?,string?,System.Threading.CancellationToken)"/>
90+
/// <inheritdoc cref="CreateChatCompletionAsync(System.Collections.Generic.IList{ChatCompletionRequestMessage},OpenAI.AnyOf{string?,CreateChatCompletionRequestModel?},bool?,System.Collections.Generic.Dictionary{string, string}?,double?,global::System.Collections.Generic.Dictionary{string, int}?,bool?,int?,int?,int?,System.Collections.Generic.IList{global::OpenAI.ChatCompletionModalitie}?,global::OpenAI.PredictionContent?,CreateChatCompletionRequestAudio?,double?,OpenAI.ResponseFormat?,int?,CreateChatCompletionRequestServiceTier?,OpenAI.OneOf{string?,System.Collections.Generic.IList{string}}?,bool?,ChatCompletionStreamOptions?,double?,double?,System.Collections.Generic.IList{ChatCompletionTool}?,ChatCompletionToolChoiceOption?,bool?,string?,System.Threading.CancellationToken)"/>
9191
public async global::System.Threading.Tasks.Task<OpenAI.AnyOf<T, global::OpenAI.CreateChatCompletionResponse>>
9292
CreateChatCompletionAsAsync<T>(
9393
JsonTypeInfo<T> jsonTypeInfo,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public partial class ChatClient
249249
User = user,
250250
};
251251

252-
await foreach (var response in CreateChatCompletionAsStreamAsync(request, cancellationToken))
252+
await foreach (var response in CreateChatCompletionAsStreamAsync(request, cancellationToken).ConfigureAwait(false))
253253
{
254254
yield return response;
255255
}

src/libs/OpenAI/Generated/JsonConverters.AnyOfFactory2.g.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/libs/OpenAI/Generated/JsonConverters.OneOfFactory1.g.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/libs/OpenAI/Generated/JsonConverters.OneOfFactory2.g.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/libs/OpenAI/Generated/JsonConverters.OneOfFactory3.g.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)