-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net: OpenAI V2 - Migrated FileService - Phase 05 (#7076)
### Motivation and Context - Added FileService OpenAI V2 Implementation - Updated Extensions and UT accordingly - Updated ClientCore to be used with FileService and allow non-required `modelId`.
- Loading branch information
1 parent
48eb9c3
commit caed23a
Showing
22 changed files
with
860 additions
and
23 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
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
24 changes: 24 additions & 0 deletions
24
...ectors/Connectors.OpenAIV2.UnitTests/Extensions/OpenAIFileUploadExecutionSettingsTests.cs
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,24 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
using Microsoft.SemanticKernel.Connectors.OpenAI; | ||
using Xunit; | ||
|
||
namespace SemanticKernel.Connectors.OpenAI.UnitTests.Extensions; | ||
|
||
public class OpenAIFileUploadExecutionSettingsTests | ||
{ | ||
[Fact] | ||
public void ItCanCreateOpenAIFileUploadExecutionSettings() | ||
{ | ||
// Arrange | ||
var fileName = "file.txt"; | ||
var purpose = OpenAIFilePurpose.FineTune; | ||
|
||
// Act | ||
var settings = new OpenAIFileUploadExecutionSettings(fileName, purpose); | ||
|
||
// Assert | ||
Assert.Equal(fileName, settings.FileName); | ||
Assert.Equal(purpose, settings.Purpose); | ||
} | ||
} |
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
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
Oops, something went wrong.