Skip to content

Commit

Permalink
Merge pull request #610 from betalgo/dev
Browse files Browse the repository at this point in the history
8.6.0
  • Loading branch information
kayhantolga authored Jul 11, 2024
2 parents b6234f2 + 3af8758 commit fe7fb8a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
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

0 comments on commit fe7fb8a

Please sign in to comment.