Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.2.0-beta Assistant #535

Merged
merged 38 commits into from
Apr 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b5ade78
[ADD]: Added beta assistants API
Jan 2, 2024
03d5ac5
[BUGFIX] Fixed an issue with assistants API deletion failure
Jan 2, 2024
e7e4e30
[CHG] Resolved namespace conflicts in MessageContent
Jan 2, 2024
b6bde0d
[FIX] Fix naming error of AssistantsStatics
Jan 18, 2024
474e4db
Merge branch 'betalgo:master' into master
CongquanHu Jan 31, 2024
f5a7032
Merge branch 'betalgo:master' into master
CongquanHu Feb 7, 2024
7a4f5d3
Merge branch 'betalgo:master' into master
CongquanHu Feb 8, 2024
bfcaf80
Add flag to control console output color
kayhantolga Apr 11, 2024
947a55c
console color reverted to default
kayhantolga Apr 11, 2024
d775730
jsonl file converted to english
kayhantolga Apr 12, 2024
d2e4b55
Updated Endpoint providers
kayhantolga Apr 12, 2024
52e1c61
Code cleanup and some fixes.
kayhantolga Apr 14, 2024
2c61fbf
model updates
kayhantolga Apr 14, 2024
9f52ba4
Response Models updated
kayhantolga Apr 14, 2024
8cbb340
documentation typo fixes
kayhantolga Apr 15, 2024
85beb14
RequiredAction Cleanup
kayhantolga Apr 15, 2024
5ad4f61
Message response objects updated
kayhantolga Apr 15, 2024
47e335d
removed last error
kayhantolga Apr 15, 2024
74a93fa
removed unused ISystemFingerPrint
kayhantolga Apr 15, 2024
6553455
removed duplicated AssistantFileResponse
kayhantolga Apr 15, 2024
88f4be9
code cleanup
kayhantolga Apr 15, 2024
6963769
bug fixes and some cleanups
kayhantolga Apr 15, 2024
287328f
updated csproj
kayhantolga Apr 15, 2024
318c0b6
code cleanup
kayhantolga Apr 15, 2024
f3d1d84
Code Cleanup
kayhantolga Apr 15, 2024
a3622ec
playground fixes
kayhantolga Apr 15, 2024
b8f124c
Read me update
kayhantolga Apr 15, 2024
34a4920
moved some files
kayhantolga Apr 15, 2024
9506c3b
Fixed a bug in configuration
kayhantolga Apr 15, 2024
a4bf0b4
documentation update
kayhantolga Apr 15, 2024
27de0e3
Merge pull request #531 from betalgo/assistant-api
kayhantolga Apr 15, 2024
aab5a2d
readme update
kayhantolga Apr 15, 2024
25e6d62
Merge pull request #534 from betalgo/assistant-api
kayhantolga Apr 15, 2024
447e908
Readme update
kayhantolga Apr 15, 2024
0558005
resolved merge conflicts
kayhantolga Apr 16, 2024
83c6ffa
bug fixes after merge
kayhantolga Apr 16, 2024
3df7392
small update
kayhantolga Apr 16, 2024
0dcda0d
resolved merge conflicts
kayhantolga Apr 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
code cleanup
kayhantolga committed Apr 15, 2024
commit 318c0b67c6eb17d423775e9b234aea3358e2fb5f
2 changes: 1 addition & 1 deletion OpenAI.Playground/ConsoleExtensions.cs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

public static class ConsoleExtensions
{
public static void WriteLine(string value, ConsoleColor color = ConsoleColor.Gray)
public static void WriteLine(string? value, ConsoleColor color = ConsoleColor.Gray)
{
var defaultColor = Console.ForegroundColor;
Console.ForegroundColor = color;
8 changes: 4 additions & 4 deletions OpenAI.Playground/Program.cs
Original file line number Diff line number Diff line change
@@ -39,13 +39,13 @@
// | / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ |
// |-----------------------------------------------------------------------|

await ChatCompletionTestHelper.RunSimpleChatCompletionTest(sdk);
//await ChatCompletionTestHelper.RunSimpleChatCompletionTest(sdk);
//await ChatCompletionTestHelper.RunSimpleCompletionStreamTest(sdk);


//Assistants
//await AssistantTestHelper.RunAssistantApiTest(sdk);
//await AssistantTestHelper.RunHowAssistantsWorkTest(sdk);
//Assistants - BETA
await AssistantTestHelper.RunAssistantApiTest(sdk);
await AssistantTestHelper.RunHowAssistantsWorkTest(sdk);


// Vision
31 changes: 11 additions & 20 deletions OpenAI.Playground/StringExtension.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Json;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using System.Text.Json;

namespace OpenAI.Playground
namespace OpenAI.Playground;

public static class StringExtension
{
public static class StringExtension
public static string? ToJson(this object? s)
{
public static string ToJson(this object s)
{
if (s == null) return null;
return JsonSerializer.Serialize(s);
}
return s == null ? null : JsonSerializer.Serialize(s);
}

public static T D<T>(this string json) where T : class
{
if (string.IsNullOrWhiteSpace(json)) return null;
return JsonSerializer.Deserialize<T>(json);
}
public static T? D<T>(this string json) where T : class
{
return string.IsNullOrWhiteSpace(json) ? null : JsonSerializer.Deserialize<T>(json);
}
}
}
Loading