-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[.Net] Set up Name field in OpenAIMessageConnector (#2662)
* create OpenAI tests project * update * update * add tests * add mroe tests: * update comment * Update dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs Co-authored-by: David Luong <[email protected]> * Update AutoGen.OpenAI.Tests.csproj * fix build --------- Co-authored-by: David Luong <[email protected]>
- Loading branch information
1 parent
2749e43
commit cd44932
Showing
9 changed files
with
817 additions
and
601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
357 changes: 139 additions & 218 deletions
357
dotnet/src/AutoGen.OpenAI/Middleware/OpenAIChatRequestMessageConnector.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
dotnet/test/AutoGen.OpenAI.Tests/AutoGen.OpenAI.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>$(TestTargetFramework)</TargetFramework> | ||
<IsPackable>false</IsPackable> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="ApprovalTests" Version="$(ApprovalTestVersion)" /> | ||
<PackageReference Include="FluentAssertions" Version="$(FluentAssertionVersion)" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" /> | ||
<PackageReference Include="xunit" Version="$(XUnitVersion)" /> | ||
<PackageReference Include="xunit.runner.console" Version="$(XUnitVersion)" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="$(XUnitVersion)" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\AutoGen.SourceGenerator\AutoGen.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
<ProjectReference Include="..\..\src\AutoGen\AutoGen.csproj" /> | ||
<ProjectReference Include="..\AutoGen.Tests\AutoGen.Tests.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="ApprovalTests\OpenAIMessageTests.BasicMessageTest.approved.txt"> | ||
<ParentFile>$([System.String]::Copy('%(FileName)').Split('.')[0])</ParentFile> | ||
<ParentExtension>$(ProjectExt.Replace('proj', ''))</ParentExtension> | ||
<DependentUpon>%(ParentFile)%(ParentExtension)</DependentUpon> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// GlobalUsing.cs | ||
|
||
global using AutoGen.Core; |
File renamed without changes.
Oops, something went wrong.