generated from RageAgainstThePixel/upm-template
-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed Thread.Message.Attachement serialization - Fixed CreateAssistantRequest to properly copy all override assistant properties - Fixed some objects that are chunked, were not properly being appended to the final object - Added FileSearchOptions to Tool.FileSearch - Added some additional constructor overloads for CodeInterpreterResources - Added some additional constructor overloads for VectorStoreRequest - Thread.DeleteAsync and Assistant.DeleteAsync now fetch the latest before deleting when deleteToolResources is also requested - Refactored the way Function handles reflected invocations for both synchronous and asynchronous calls - Function.InvokeAsync will now properly also call synchronous invocations in the tool call collection - Refactored Threads/Assistant Unit Tests
- Loading branch information
1 parent
7070d1f
commit c081574
Showing
37 changed files
with
745 additions
and
512 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
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
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
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 |
---|---|---|
@@ -1,21 +1,29 @@ | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using UnityEngine.Scripting; | ||
|
||
namespace OpenAI.Batch | ||
{ | ||
[Preserve] | ||
public sealed class Endpoint | ||
{ | ||
public const string ChatCompletions = "/v1/chat/completions"; | ||
public const string Embeddings = "/v1/embeddings"; | ||
public const string Completions = "/v1/completions"; | ||
|
||
[Preserve] | ||
public Endpoint(string endpoint) => Value = endpoint; | ||
|
||
[Preserve] | ||
public string Value { get; } | ||
|
||
[Preserve] | ||
public override string ToString() => Value; | ||
|
||
[Preserve] | ||
public static implicit operator string(Endpoint endpoint) => endpoint?.ToString(); | ||
|
||
[Preserve] | ||
public static implicit operator Endpoint(string endpoint) => new(endpoint); | ||
} | ||
} |
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.