Skip to content

OpenAI-DotNet 7.7.1 #614

OpenAI-DotNet 7.7.1

OpenAI-DotNet 7.7.1 #614

GitHub Actions / Test Results failed Feb 25, 2024 in 0s

58 fail, 23 pass in 1m 44s

81 tests   23 ✅  1m 44s ⏱️
 1 suites   0 💤
 1 files    58 ❌

Results for commit 0cde283.

Annotations

Check warning on line 0 in OpenAI.Tests.TestFixture_05_Images

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_03_01_CreateImageVariation (OpenAI.Tests.TestFixture_05_Images) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 8s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Images.ImagesEndpoint.DeserializeResponseAsync(HttpResponseMessage response, HttpContent requestContent, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Images/ImagesEndpoint.cs:line 101
   at OpenAI.Images.ImagesEndpoint.CreateImageVariationAsync(ImageVariationRequest request, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Images/ImagesEndpoint.cs:line 96
   at OpenAI.Tests.TestFixture_05_Images.Test_03_01_CreateImageVariation() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_05_Images.cs:line 98
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_12_Threads

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_06_03_ListRunsAndSteps (OpenAI.Tests.TestFixture_12_Threads) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_12_Threads.Test_06_03_ListRunsAndSteps() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 260
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_12_Threads.Test_06_03_ListRunsAndSteps() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 260
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_12_Threads.Test_06_03_ListRunsAndSteps()

Check warning on line 0 in OpenAI.Tests.TestFixture_08_Files

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_01_UploadFile (OpenAI.Tests.TestFixture_08_Files) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 206
   at OpenAI.Files.FilesEndpoint.UploadFileAsync(FileUploadRequest request, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Files/FilesEndpoint.cs:line 89
   at OpenAI.Files.FilesEndpoint.UploadFileAsync(String filePath, String purpose, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Files/FilesEndpoint.cs:line 70
   at OpenAI.Tests.TestFixture_08_Files.Test_01_UploadFile() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_08_Files.cs:line 21
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_12_Threads

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_05_DeleteThread (OpenAI.Tests.TestFixture_12_Threads) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_12_Threads.Test_05_DeleteThread() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 204
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_12_Threads.Test_05_DeleteThread() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 204
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_12_Threads.Test_05_DeleteThread()

Check warning on line 0 in OpenAI.Tests.TestFixture_05_Images

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_01_01_GenerateImages (OpenAI.Tests.TestFixture_05_Images) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 14s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Images.ImagesEndpoint.DeserializeResponseAsync(HttpResponseMessage response, HttpContent requestContent, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Images/ImagesEndpoint.cs:line 101
   at OpenAI.Images.ImagesEndpoint.GenerateImageAsync(ImageGenerationRequest request, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Images/ImagesEndpoint.cs:line 35
   at OpenAI.Tests.TestFixture_05_Images.Test_01_01_GenerateImages() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_05_Images.cs:line 19
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_12_Threads

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_06_05_CancelRun (OpenAI.Tests.TestFixture_12_Threads) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_12_Threads.Test_06_05_CancelRun() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 303
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_12_Threads.Test_06_05_CancelRun() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 303
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_12_Threads.Test_06_05_CancelRun()

Check warning on line 0 in OpenAI.Tests.TestFixture_08_Files

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_05_DeleteFiles (OpenAI.Tests.TestFixture_08_Files) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 206
   at OpenAI.Files.FilesEndpoint.ListFilesAsync(String purpose, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Files/FilesEndpoint.cs:line 50
   at OpenAI.Tests.TestFixture_08_Files.Test_05_DeleteFiles() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_08_Files.cs:line 86
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_10_Moderations

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_03_Moderation_Chunked (OpenAI.Tests.TestFixture_10_Moderations) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 206
   at OpenAI.Moderations.ModerationsEndpoint.CreateModerationAsync(ModerationsRequest request, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Moderations/ModerationsEndpoint.cs:line 55
   at OpenAI.Moderations.ModerationsEndpoint.GetModerationAsync(String input, String model, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Moderations/ModerationsEndpoint.cs:line 42
   at OpenAI.Moderations.ModerationsEndpoint.GetModerationChunkedAsync(String input, String model, Int32 chunkSize, Int32 chunkOverlap, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Moderations/ModerationsEndpoint.cs:line 105
   at OpenAI.Tests.TestFixture_10_Moderations.Test_03_Moderation_Chunked() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_10_Moderations.cs:line 33
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_11_Assistants

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_03_ModifyAssistants (OpenAI.Tests.TestFixture_11_Assistants) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_11_Assistants.Test_03_ModifyAssistants() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 70
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_11_Assistants.Test_03_ModifyAssistants() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 70
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_11_Assistants.Test_03_ModifyAssistants()

Check warning on line 0 in OpenAI.Tests.TestFixture_05_Images

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_02_02_CreateImageEdit_B64_Json (OpenAI.Tests.TestFixture_05_Images) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 11s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Images.ImagesEndpoint.DeserializeResponseAsync(HttpResponseMessage response, HttpContent requestContent, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Images/ImagesEndpoint.cs:line 101
   at OpenAI.Images.ImagesEndpoint.CreateImageEditAsync(ImageEditRequest request, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Images/ImagesEndpoint.cs:line 70
   at OpenAI.Tests.TestFixture_05_Images.Test_02_02_CreateImageEdit_B64_Json() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_05_Images.cs:line 79
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_07_Audio

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_3_Speech (OpenAI.Tests.TestFixture_07_Audio) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Extensions.ResponseExtensions.CheckResponseAsync(HttpResponseMessage response, Boolean debug, StringContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 212
   at OpenAI.Audio.AudioEndpoint.CreateSpeechAsync(SpeechRequest request, Func`2 chunkCallback, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Audio/AudioEndpoint.cs:line 74
   at OpenAI.Audio.AudioEndpoint.CreateSpeechAsync(SpeechRequest request, Func`2 chunkCallback, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Audio/AudioEndpoint.cs:line 75
   at OpenAI.Audio.AudioEndpoint.CreateSpeechAsync(SpeechRequest request, Func`2 chunkCallback, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Audio/AudioEndpoint.cs:line 75
   at OpenAI.Tests.TestFixture_07_Audio.Test_3_Speech() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_07_Audio.cs:line 46
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_11_Assistants

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_01_CreateAssistant (OpenAI.Tests.TestFixture_11_Assistants) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 206
   at OpenAI.Files.FilesEndpoint.UploadFileAsync(FileUploadRequest request, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Files/FilesEndpoint.cs:line 89
   at OpenAI.Files.FilesEndpoint.UploadFileAsync(String filePath, String purpose, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Files/FilesEndpoint.cs:line 70
   at OpenAI.Tests.TestFixture_11_Assistants.Test_01_CreateAssistant() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 23
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_03_Chat

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_02_04_GetChatToolForceCompletion (OpenAI.Tests.TestFixture_03_Chat) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Chat.ChatEndpoint.GetCompletionAsync(ChatRequest chatRequest, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Chat/ChatEndpoint.cs:line 39
   at OpenAI.Tests.TestFixture_03_Chat.Test_02_04_GetChatToolForceCompletion() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_03_Chat.cs:line 335
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_09_FineTuning

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_02_ListFineTuneJobs (OpenAI.Tests.TestFixture_09_FineTuning) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 206
   at OpenAI.FineTuning.FineTuningEndpoint.ListJobsAsync(ListQuery query, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/FineTuning/FineTuningEndpoint.cs:line 48
   at OpenAI.Tests.TestFixture_09_FineTuning.Test_02_ListFineTuneJobs() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_09_FineTuning.cs:line 109
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_03_Chat

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_02_03_ChatCompletion_Multiple_Tools_Streaming (OpenAI.Tests.TestFixture_03_Chat) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 7s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Chat.ChatEndpoint.GetCompletionAsync(ChatRequest chatRequest, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Chat/ChatEndpoint.cs:line 39
   at OpenAI.Tests.TestFixture_03_Chat.Test_02_03_ChatCompletion_Multiple_Tools_Streaming() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_03_Chat.cs:line 313
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_09_FineTuning

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_04_ListFineTuneEvents (OpenAI.Tests.TestFixture_09_FineTuning) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 206
   at OpenAI.FineTuning.FineTuningEndpoint.ListJobsAsync(ListQuery query, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/FineTuning/FineTuningEndpoint.cs:line 48
   at OpenAI.Tests.TestFixture_09_FineTuning.Test_04_ListFineTuneEvents() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_09_FineTuning.cs:line 141
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_12_Threads

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_04_02_ListMessages (OpenAI.Tests.TestFixture_12_Threads) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_12_Threads.Test_04_02_ListMessages() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 111
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_12_Threads.Test_04_02_ListMessages() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 111
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_12_Threads.Test_04_02_ListMessages()

Check warning on line 0 in OpenAI.Tests.TestFixture_05_Images

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_02_01_CreateImageEdit (OpenAI.Tests.TestFixture_05_Images) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 11s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Images.ImagesEndpoint.DeserializeResponseAsync(HttpResponseMessage response, HttpContent requestContent, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Images/ImagesEndpoint.cs:line 101
   at OpenAI.Images.ImagesEndpoint.CreateImageEditAsync(ImageEditRequest request, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Images/ImagesEndpoint.cs:line 70
   at OpenAI.Tests.TestFixture_05_Images.Test_02_01_CreateImageEdit() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_05_Images.cs:line 58
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_11_Assistants

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_04_04_DeleteAssistantFiles (OpenAI.Tests.TestFixture_11_Assistants) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_11_Assistants.Test_04_04_DeleteAssistantFiles() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 146
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_11_Assistants.Test_04_04_DeleteAssistantFiles() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 146
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_11_Assistants.Test_04_04_DeleteAssistantFiles()

Check warning on line 0 in OpenAI.Tests.TestFixture_03_Chat

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_01_03_JsonMode (OpenAI.Tests.TestFixture_03_Chat) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Chat.ChatEndpoint.GetCompletionAsync(ChatRequest chatRequest, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Chat/ChatEndpoint.cs:line 39
   at OpenAI.Tests.TestFixture_03_Chat.Test_01_03_JsonMode() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_03_Chat.cs:line 88
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_12_Threads

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_04_03_ModifyMessage (OpenAI.Tests.TestFixture_12_Threads) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_12_Threads.Test_04_03_ModifyMessage() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 135
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_12_Threads.Test_04_03_ModifyMessage() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_12_Threads.cs:line 135
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_12_Threads.Test_04_03_ModifyMessage()

Check warning on line 0 in OpenAI.Tests.TestFixture_11_Assistants

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_04_02_ListAssistantFiles (OpenAI.Tests.TestFixture_11_Assistants) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_11_Assistants.Test_04_02_ListAssistantFiles() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 103
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_11_Assistants.Test_04_02_ListAssistantFiles() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 103
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_11_Assistants.Test_04_02_ListAssistantFiles()

Check warning on line 0 in OpenAI.Tests.TestFixture_03_Chat

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_01_01_GetChatCompletion (OpenAI.Tests.TestFixture_03_Chat) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 1s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 183
   at OpenAI.Chat.ChatEndpoint.GetCompletionAsync(ChatRequest chatRequest, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Chat/ChatEndpoint.cs:line 39
   at OpenAI.Tests.TestFixture_03_Chat.Test_01_01_GetChatCompletion() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_03_Chat.cs:line 28
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_09_FineTuning

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_05_CancelFineTuneJob (OpenAI.Tests.TestFixture_09_FineTuning) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
System.Collections.Generic.KeyNotFoundException : The given key 'Body' was not present in the dictionary.   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at OpenAI.Extensions.ResponseExtensions.ReadAsStringAsync(HttpResponseMessage response, Boolean debugResponse, HttpContent requestContent, MemoryStream responseStream, CancellationToken cancellationToken, String methodName) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/Extensions/ResponseExtensions.cs:line 206
   at OpenAI.FineTuning.FineTuningEndpoint.ListJobsAsync(ListQuery query, CancellationToken cancellationToken) in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet/FineTuning/FineTuningEndpoint.cs:line 48
   at OpenAI.Tests.TestFixture_09_FineTuning.Test_05_CancelFineTuneJob() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_09_FineTuning.cs:line 169
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()

Check warning on line 0 in OpenAI.Tests.TestFixture_11_Assistants

See this annotation in the file changed.

@github-actions github-actions / Test Results

Test_04_03_RemoveAssistantFile (OpenAI.Tests.TestFixture_11_Assistants) failed

test-results/_fv-az692-711_2024-02-25_20_07_58.trx [took 0s]
Raw output
  Expected: not null
  But was:  null
   at OpenAI.Tests.TestFixture_11_Assistants.Test_04_03_RemoveAssistantFile() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 129
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

1)    at OpenAI.Tests.TestFixture_11_Assistants.Test_04_03_RemoveAssistantFile() in /home/runner/work/OpenAI-DotNet/OpenAI-DotNet/OpenAI-DotNet-Tests/TestFixture_11_Assistants.cs:line 129
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenAI.Tests.TestFixture_11_Assistants.Test_04_03_RemoveAssistantFile()