Skip to content

Commit fe7fb8a

Browse files
authored
Merge pull request #610 from betalgo/dev
8.6.0
2 parents b6234f2 + 3af8758 commit fe7fb8a

File tree

6 files changed

+20
-21
lines changed

6 files changed

+20
-21
lines changed
9.58 KB
Loading

OpenAI.SDK/EndpointProviders/AzureOpenAiEndpointProvider.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public string AssistantList(PaginationRequest? assistantListRequest)
211211
var query = assistantListRequest?.GetQueryParameters();
212212
if (!string.IsNullOrWhiteSpace(query))
213213
{
214-
url = $"{url}{query}";
214+
url = $"{url}&{query}";
215215
}
216216

217217
return url;
@@ -239,7 +239,7 @@ public string AssistantFileList(string assistantId, PaginationRequest? assistant
239239
var query = assistantFileListRequest?.GetQueryParameters();
240240
if (!string.IsNullOrWhiteSpace(query))
241241
{
242-
url = $"{url}{query}";
242+
url = $"{url}&{query}";
243243
}
244244

245245
return url;
@@ -287,7 +287,7 @@ public string MessageList(string threadId, PaginationRequest? messageListRequest
287287
var query = messageListRequest?.GetQueryParameters();
288288
if (!string.IsNullOrWhiteSpace(query))
289289
{
290-
url = $"{url}{query}";
290+
url = $"{url}&{query}";
291291
}
292292

293293
return url;
@@ -320,7 +320,7 @@ public string RunList(string threadId, PaginationRequest? runListRequest)
320320
var query = runListRequest?.GetQueryParameters();
321321
if (!string.IsNullOrWhiteSpace(query))
322322
{
323-
url = $"{url}{query}";
323+
url = $"{url}&{query}";
324324
}
325325

326326
return url;
@@ -353,7 +353,7 @@ public string RunStepList(string threadId, string runId, PaginationRequest? runS
353353
var query = runStepListRequest?.GetQueryParameters();
354354
if (!string.IsNullOrWhiteSpace(query))
355355
{
356-
url = $"{url}{query}";
356+
url = $"{url}&{query}";
357357
}
358358

359359
return url;
@@ -372,7 +372,7 @@ public string VectorStoreList(PaginationRequest baseListRequest)
372372
var query = baseListRequest?.GetQueryParameters();
373373
if (!string.IsNullOrWhiteSpace(query))
374374
{
375-
url = $"{url}?{query}";
375+
url = $"{url}&{query}";
376376
}
377377

378378
return url;
@@ -415,7 +415,7 @@ public string VectorStoreFileList(string vectorStoreId, VectorStoreFileListReque
415415
var query = baseListRequest?.GetQueryParameters();
416416
if (!string.IsNullOrWhiteSpace(query))
417417
{
418-
url = $"{url}?{query}";
418+
url = $"{url}&{query}";
419419
}
420420

421421
return url;
@@ -443,7 +443,7 @@ public string VectorStoreFileBatchList(string vectorStoreId, string batchId, Pag
443443
var query = baseListRequest?.GetQueryParameters();
444444
if (!string.IsNullOrWhiteSpace(query))
445445
{
446-
url = $"{url}?{query}";
446+
url = $"{url}&{query}";
447447
}
448448

449449
return url;

OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,10 @@ public record AssistantResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels
6363
/// </summary>
6464
[JsonPropertyName("tools")]
6565
public List<ToolDefinition> Tools { get; set; }
66+
67+
/// <summary>
68+
/// 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.
69+
/// </summary>
70+
[JsonPropertyName("tool_resources")]
71+
public ToolResources? ToolResources { get; set; }
6672
}

OpenAI.SDK/OpenAI-Betalgo.png

-5.54 KB
Binary file not shown.

OpenAI.SDK/OpenAI.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<LangVersion>Latest</LangVersion>
88
<Copyright>Betalgo Up Ltd.</Copyright>
99
<PackageProjectUrl>https://openai.com/</PackageProjectUrl>
10-
<PackageIcon>OpenAI-Betalgo.png</PackageIcon>
10+
<PackageIcon>Betalgo-Ranul-OpenAI-icon.png</PackageIcon>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1212
<Title>OpenAI SDK by Betalgo</Title>
13-
<Version>8.5.1</Version>
13+
<Version>8.6.0</Version>
1414
<Authors>Tolga Kayhan, Betalgo</Authors>
1515
<Company>Betalgo Up Ltd.</Company>
1616
<Product>OpenAI ChatGPT, Whisper, GPT-4 and DALL·E dotnet SDK</Product>
@@ -47,10 +47,6 @@
4747
<Pack>True</Pack>
4848
<PackagePath>\</PackagePath>
4949
</None>
50-
<None Include="OpenAI-Betalgo.png">
51-
<Pack>True</Pack>
52-
<PackagePath>\</PackagePath>
53-
</None>
5450
</ItemGroup>
5551
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
5652
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />

Readme.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,10 @@ Due to time constraints, not all methods have been thoroughly tested or fully do
116116
Needless to say, I cannot accept responsibility for any damage caused by using the library.
117117

118118
## Changelog
119-
### 8.5.1
120-
- Introduced `IsDelta` into BaseResponseModel, which can help to determine if incoming data is part of the delta.
121-
-
122-
### 8.5.0
123-
- 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.
124-
- The Base Response now has a `StreamEvent` field, which can be used to determine the type of event while streaming.
125-
119+
### 8.6.0
120+
- Fixed Azure Assistant URLs.
121+
- Updated library logo.
122+
- Added support for tool resources in Assistant response.
126123

127124
### [More Change Logs](https://github.com/betalgo/openai/wiki/Change-Logs)
128125
---

0 commit comments

Comments
 (0)