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.6.0 #610

Merged
merged 5 commits into from
Jul 11, 2024
Merged

8.6.0 #610

Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added OpenAI.SDK/Betalgo-Ranul-OpenAI-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions OpenAI.SDK/EndpointProviders/AzureOpenAiEndpointProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public string AssistantList(PaginationRequest? assistantListRequest)
var query = assistantListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -239,7 +239,7 @@ public string AssistantFileList(string assistantId, PaginationRequest? assistant
var query = assistantFileListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -287,7 +287,7 @@ public string MessageList(string threadId, PaginationRequest? messageListRequest
var query = messageListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -320,7 +320,7 @@ public string RunList(string threadId, PaginationRequest? runListRequest)
var query = runListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -353,7 +353,7 @@ public string RunStepList(string threadId, string runId, PaginationRequest? runS
var query = runStepListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}{query}";
url = $"{url}&{query}";
}

return url;
Expand All @@ -372,7 +372,7 @@ public string VectorStoreList(PaginationRequest baseListRequest)
var query = baseListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}?{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -415,7 +415,7 @@ public string VectorStoreFileList(string vectorStoreId, VectorStoreFileListReque
var query = baseListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}?{query}";
url = $"{url}&{query}";
}

return url;
Expand Down Expand Up @@ -443,7 +443,7 @@ public string VectorStoreFileBatchList(string vectorStoreId, string batchId, Pag
var query = baseListRequest?.GetQueryParameters();
if (!string.IsNullOrWhiteSpace(query))
{
url = $"{url}?{query}";
url = $"{url}&{query}";
}

return url;
Expand Down
6 changes: 6 additions & 0 deletions OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,10 @@ public record AssistantResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels
/// </summary>
[JsonPropertyName("tools")]
public List<ToolDefinition> Tools { get; set; }

/// <summary>
/// A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the code_interpreter tool requires a list of file IDs, while the file_search tool requires a list of vector store IDs.
/// </summary>
[JsonPropertyName("tool_resources")]
public ToolResources? ToolResources { get; set; }
}
Binary file removed OpenAI.SDK/OpenAI-Betalgo.png
Binary file not shown.
8 changes: 2 additions & 6 deletions OpenAI.SDK/OpenAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<LangVersion>Latest</LangVersion>
<Copyright>Betalgo Up Ltd.</Copyright>
<PackageProjectUrl>https://openai.com/</PackageProjectUrl>
<PackageIcon>OpenAI-Betalgo.png</PackageIcon>
<PackageIcon>Betalgo-Ranul-OpenAI-icon.png</PackageIcon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>OpenAI SDK by Betalgo</Title>
<Version>8.5.1</Version>
<Version>8.6.0</Version>
<Authors>Tolga Kayhan, Betalgo</Authors>
<Company>Betalgo Up Ltd.</Company>
<Product>OpenAI ChatGPT, Whisper, GPT-4 and DALL·E dotnet SDK</Product>
Expand Down Expand Up @@ -47,10 +47,6 @@
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="OpenAI-Betalgo.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
Expand Down
11 changes: 4 additions & 7 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,10 @@ Due to time constraints, not all methods have been thoroughly tested or fully do
Needless to say, I cannot accept responsibility for any damage caused by using the library.

## Changelog
### 8.5.1
- Introduced `IsDelta` into BaseResponseModel, which can help to determine if incoming data is part of the delta.
-
### 8.5.0
- Assistant Stream now returns the `BaseResponse` type, but they can be cast to the appropriate types(`RunStepResponse`,`RunResponse`,`MessageResponse`). The reason for this change is that we realized the stream API returns multiple different object types rather than returning a single object type.
- The Base Response now has a `StreamEvent` field, which can be used to determine the type of event while streaming.

### 8.6.0
- Fixed Azure Assistant URLs.
- Updated library logo.
- Added support for tool resources in Assistant response.

### [More Change Logs](https://github.com/betalgo/openai/wiki/Change-Logs)
---
Expand Down
Loading