-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #429 from EhsanValiGeeksltd/master
add V2 assistant suppot
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Olive.Gpt.AssistantDto.V2; | ||
|
||
public enum OpenAiAssistantTools | ||
{ | ||
[EnumMember(Value = "code_interpreter")] | ||
CodeInterpreter, | ||
[EnumMember(Value = "file_search")] | ||
FileSearch, | ||
[EnumMember(Value = "function")] | ||
Function | ||
} |
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,15 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Olive.Gpt.AssistantDto.V2; | ||
|
||
public class OpenAiCreateAssistantDto : Olive.Gpt.AssistantDto.OpenAiCreateAssistantDto | ||
{ | ||
public new OpenAiAssistantToolsDto[] Tools{ get; set; } | ||
} | ||
|
||
public class OpenAiAssistantToolsDto : Olive.Gpt.AssistantDto.OpenAiAssistantToolsDto | ||
{ | ||
[JsonProperty("type")] | ||
public new OpenAiAssistantTools Type{ get; set; } | ||
} |
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