Skip to content

Commit e0fee60

Browse files
authored
Update generated code (#326)
1 parent c046c34 commit e0fee60

File tree

1,138 files changed

+33582
-28321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,138 files changed

+33582
-28321
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,7 @@ artifacts
177177

178178
# Temporary typespec folders for typespec generation
179179
TempTypeSpecFiles/
180+
181+
# Artifacts from the generator
182+
tspCodeModel.json
183+
Configuration.json

api/OpenAI.netstandard2.0.cs

Lines changed: 393 additions & 786 deletions
Large diffs are not rendered by default.

nuget.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<packageSources>
44
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
55
<clear />
66
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
77
</packageSources>
8-
</configuration>
8+
</configuration>

src/Custom/Assistants/AssistantClient.Protocol.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
namespace OpenAI.Assistants;
88

9+
[CodeGenSuppress("ListAssistantsAsync", typeof(int?), typeof(string), typeof(string), typeof(string), typeof(RequestOptions))]
10+
[CodeGenSuppress("ListAssistants", typeof(int?), typeof(string), typeof(string), typeof(string), typeof(RequestOptions))]
911
public partial class AssistantClient
1012
{
1113
/// <summary>
@@ -22,7 +24,7 @@ public virtual async Task<ClientResult> CreateAssistantAsync(BinaryContent conte
2224
Argument.AssertNotNull(content, nameof(content));
2325

2426
using PipelineMessage message = CreateCreateAssistantRequest(content, options);
25-
return ClientResult.FromResponse(await _pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
27+
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
2628
}
2729

2830
/// <summary>
@@ -39,7 +41,7 @@ public virtual ClientResult CreateAssistant(BinaryContent content, RequestOption
3941
Argument.AssertNotNull(content, nameof(content));
4042

4143
using PipelineMessage message = CreateCreateAssistantRequest(content, options);
42-
return ClientResult.FromResponse(_pipeline.ProcessMessage(message, options));
44+
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
4345
}
4446

4547
/// <summary>
@@ -69,7 +71,7 @@ public virtual ClientResult CreateAssistant(BinaryContent content, RequestOption
6971
[EditorBrowsable(EditorBrowsableState.Never)]
7072
public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order, string after, string before, RequestOptions options)
7173
{
72-
return new AsyncAssistantCollectionResult(this, _pipeline, options, limit, order, after, before);
74+
return new AsyncAssistantCollectionResult(this, Pipeline, options, limit, order, after, before);
7375
}
7476

7577
/// <summary>
@@ -99,7 +101,7 @@ public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order
99101
[EditorBrowsable(EditorBrowsableState.Never)]
100102
public virtual CollectionResult GetAssistants(int? limit, string order, string after, string before, RequestOptions options)
101103
{
102-
return new AssistantCollectionResult(this, _pipeline, options, limit, order, after, before);
104+
return new AssistantCollectionResult(this, Pipeline, options, limit, order, after, before);
103105
}
104106

105107
/// <summary>
@@ -117,7 +119,7 @@ public virtual async Task<ClientResult> GetAssistantAsync(string assistantId, Re
117119
Argument.AssertNotNullOrEmpty(assistantId, nameof(assistantId));
118120

119121
using PipelineMessage message = CreateGetAssistantRequest(assistantId, options);
120-
return ClientResult.FromResponse(await _pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
122+
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
121123
}
122124

123125
/// <summary>
@@ -135,7 +137,7 @@ public virtual ClientResult GetAssistant(string assistantId, RequestOptions opti
135137
Argument.AssertNotNullOrEmpty(assistantId, nameof(assistantId));
136138

137139
using PipelineMessage message = CreateGetAssistantRequest(assistantId, options);
138-
return ClientResult.FromResponse(_pipeline.ProcessMessage(message, options));
140+
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
139141
}
140142

141143
/// <summary>
@@ -155,7 +157,7 @@ public virtual async Task<ClientResult> ModifyAssistantAsync(string assistantId,
155157
Argument.AssertNotNull(content, nameof(content));
156158

157159
using PipelineMessage message = CreateModifyAssistantRequest(assistantId, content, options);
158-
return ClientResult.FromResponse(await _pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
160+
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
159161
}
160162

161163
/// <summary>
@@ -175,7 +177,7 @@ public virtual ClientResult ModifyAssistant(string assistantId, BinaryContent co
175177
Argument.AssertNotNull(content, nameof(content));
176178

177179
using PipelineMessage message = CreateModifyAssistantRequest(assistantId, content, options);
178-
return ClientResult.FromResponse(_pipeline.ProcessMessage(message, options));
180+
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
179181
}
180182

181183
/// <summary>
@@ -193,7 +195,7 @@ public virtual async Task<ClientResult> DeleteAssistantAsync(string assistantId,
193195
Argument.AssertNotNullOrEmpty(assistantId, nameof(assistantId));
194196

195197
using PipelineMessage message = CreateDeleteAssistantRequest(assistantId, options);
196-
return ClientResult.FromResponse(await _pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
198+
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
197199
}
198200

199201
/// <summary>
@@ -211,7 +213,7 @@ public virtual ClientResult DeleteAssistant(string assistantId, RequestOptions o
211213
Argument.AssertNotNullOrEmpty(assistantId, nameof(assistantId));
212214

213215
using PipelineMessage message = CreateDeleteAssistantRequest(assistantId, options);
214-
return ClientResult.FromResponse(_pipeline.ProcessMessage(message, options));
216+
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
215217
}
216218

217219
/// <inheritdoc cref="InternalAssistantMessageClient.CreateMessageAsync"/>

0 commit comments

Comments
 (0)