Skip to content

Commit 2b9deaa

Browse files
committed
export
1 parent 52df809 commit 2b9deaa

9 files changed

+315
-161
lines changed

api/OpenAI.net8.0.cs

Lines changed: 153 additions & 75 deletions
Large diffs are not rendered by default.

api/OpenAI.netstandard2.0.cs

Lines changed: 147 additions & 71 deletions
Large diffs are not rendered by default.

src/Generated/OpenAIClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public partial class OpenAIClient
1717
private readonly ApiKeyCredential _keyCredential;
1818
private const string AuthorizationHeader = "Authorization";
1919
private const string AuthorizationApiKeyPrefix = "Bearer";
20-
private ResponsesClient _cachedResponseClient;
20+
private ResponsesClient _cachedResponsesClient;
2121

2222
protected OpenAIClient()
2323
{
@@ -26,9 +26,9 @@ protected OpenAIClient()
2626
public ClientPipeline Pipeline { get; }
2727

2828
[Experimental("OPENAI001")]
29-
public virtual ResponsesClient GetResponseClient()
29+
public virtual ResponsesClient GetResponsesClient()
3030
{
31-
return Volatile.Read(ref _cachedResponseClient) ?? Interlocked.CompareExchange(ref _cachedResponseClient, new ResponsesClient(Pipeline, _endpoint), null) ?? _cachedResponseClient;
31+
return Volatile.Read(ref _cachedResponsesClient) ?? Interlocked.CompareExchange(ref _cachedResponsesClient, new ResponsesClient(Pipeline, _endpoint), null) ?? _cachedResponsesClient;
3232
}
3333
}
3434
}

src/Generated/ResponseClient.cs renamed to src/Generated/ResponsesClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public virtual CollectionResult GetResponseInputItems(string responseId, int? li
8181
{
8282
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
8383

84-
return new ResponseClientGetResponseInputItemsCollectionResult(
84+
return new ResponsesClientGetResponseInputItemsCollectionResult(
8585
this,
8686
responseId,
8787
limit,
@@ -95,7 +95,7 @@ public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseI
9595
{
9696
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
9797

98-
return new ResponseClientGetResponseInputItemsAsyncCollectionResult(
98+
return new ResponsesClientGetResponseInputItemsAsyncCollectionResult(
9999
this,
100100
responseId,
101101
limit,
@@ -109,7 +109,7 @@ public virtual CollectionResult<ResponseItem> GetResponseInputItems(string respo
109109
{
110110
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
111111

112-
return new ResponseClientGetResponseInputItemsCollectionResultOfT(
112+
return new ResponsesClientGetResponseInputItemsCollectionResultOfT(
113113
this,
114114
responseId,
115115
options?.PageSizeLimit,
@@ -123,7 +123,7 @@ public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(st
123123
{
124124
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
125125

126-
return new ResponseClientGetResponseInputItemsAsyncCollectionResultOfT(
126+
return new ResponsesClientGetResponseInputItemsAsyncCollectionResultOfT(
127127
this,
128128
responseId,
129129
options?.PageSizeLimit,

src/Generated/ResponseClientGetResponseInputItemsAsyncCollectionResult.cs renamed to src/Generated/ResponsesClientGetResponseInputItemsAsyncCollectionResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace OpenAI.Responses
1212
{
13-
internal partial class ResponseClientGetResponseInputItemsAsyncCollectionResult : AsyncCollectionResult
13+
internal partial class ResponsesClientGetResponseInputItemsAsyncCollectionResult : AsyncCollectionResult
1414
{
1515
private readonly ResponsesClient _client;
1616
private readonly string _responseId;
@@ -20,7 +20,7 @@ internal partial class ResponseClientGetResponseInputItemsAsyncCollectionResult
2020
private readonly string _before;
2121
private readonly RequestOptions _options;
2222

23-
public ResponseClientGetResponseInputItemsAsyncCollectionResult(ResponsesClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
23+
public ResponsesClientGetResponseInputItemsAsyncCollectionResult(ResponsesClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
2424
{
2525
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
2626

src/Generated/ResponseClientGetResponseInputItemsAsyncCollectionResultOfT.cs renamed to src/Generated/ResponsesClientGetResponseInputItemsAsyncCollectionResultOfT.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace OpenAI.Responses
1313
{
14-
internal partial class ResponseClientGetResponseInputItemsAsyncCollectionResultOfT : AsyncCollectionResult<ResponseItem>
14+
internal partial class ResponsesClientGetResponseInputItemsAsyncCollectionResultOfT : AsyncCollectionResult<ResponseItem>
1515
{
1616
private readonly ResponsesClient _client;
1717
private readonly string _responseId;
@@ -21,7 +21,7 @@ internal partial class ResponseClientGetResponseInputItemsAsyncCollectionResultO
2121
private readonly string _before;
2222
private readonly RequestOptions _options;
2323

24-
public ResponseClientGetResponseInputItemsAsyncCollectionResultOfT(ResponsesClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
24+
public ResponsesClientGetResponseInputItemsAsyncCollectionResultOfT(ResponsesClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
2525
{
2626
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
2727

src/Generated/ResponseClientGetResponseInputItemsCollectionResult.cs renamed to src/Generated/ResponsesClientGetResponseInputItemsCollectionResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace OpenAI.Responses
1212
{
13-
internal partial class ResponseClientGetResponseInputItemsCollectionResult : CollectionResult
13+
internal partial class ResponsesClientGetResponseInputItemsCollectionResult : CollectionResult
1414
{
1515
private readonly ResponsesClient _client;
1616
private readonly string _responseId;
@@ -20,7 +20,7 @@ internal partial class ResponseClientGetResponseInputItemsCollectionResult : Col
2020
private readonly string _before;
2121
private readonly RequestOptions _options;
2222

23-
public ResponseClientGetResponseInputItemsCollectionResult(ResponsesClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
23+
public ResponsesClientGetResponseInputItemsCollectionResult(ResponsesClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
2424
{
2525
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
2626

src/Generated/ResponseClientGetResponseInputItemsCollectionResultOfT.cs renamed to src/Generated/ResponsesClientGetResponseInputItemsCollectionResultOfT.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace OpenAI.Responses
1212
{
13-
internal partial class ResponseClientGetResponseInputItemsCollectionResultOfT : CollectionResult<ResponseItem>
13+
internal partial class ResponsesClientGetResponseInputItemsCollectionResultOfT : CollectionResult<ResponseItem>
1414
{
1515
private readonly ResponsesClient _client;
1616
private readonly string _responseId;
@@ -20,7 +20,7 @@ internal partial class ResponseClientGetResponseInputItemsCollectionResultOfT :
2020
private readonly string _before;
2121
private readonly RequestOptions _options;
2222

23-
public ResponseClientGetResponseInputItemsCollectionResultOfT(ResponsesClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
23+
public ResponsesClientGetResponseInputItemsCollectionResultOfT(ResponsesClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
2424
{
2525
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
2626

0 commit comments

Comments
 (0)