Skip to content

Commit

Permalink
Update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
joseharriaga committed Jan 17, 2025
1 parent c046c34 commit 9029aa0
Show file tree
Hide file tree
Showing 1,138 changed files with 33,582 additions and 28,321 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,7 @@ artifacts

# Temporary typespec folders for typespec generation
TempTypeSpecFiles/

# Artifacts from the generator
tspCodeModel.json
Configuration.json
1,179 changes: 393 additions & 786 deletions api/OpenAI.netstandard2.0.cs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
</configuration>
22 changes: 12 additions & 10 deletions src/Custom/Assistants/AssistantClient.Protocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

namespace OpenAI.Assistants;

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

using PipelineMessage message = CreateCreateAssistantRequest(content, options);
return ClientResult.FromResponse(await _pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}

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

using PipelineMessage message = CreateCreateAssistantRequest(content, options);
return ClientResult.FromResponse(_pipeline.ProcessMessage(message, options));
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}

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

/// <summary>
Expand Down Expand Up @@ -99,7 +101,7 @@ public virtual AsyncCollectionResult GetAssistantsAsync(int? limit, string order
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual CollectionResult GetAssistants(int? limit, string order, string after, string before, RequestOptions options)
{
return new AssistantCollectionResult(this, _pipeline, options, limit, order, after, before);
return new AssistantCollectionResult(this, Pipeline, options, limit, order, after, before);
}

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

using PipelineMessage message = CreateGetAssistantRequest(assistantId, options);
return ClientResult.FromResponse(await _pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}

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

using PipelineMessage message = CreateGetAssistantRequest(assistantId, options);
return ClientResult.FromResponse(_pipeline.ProcessMessage(message, options));
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}

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

using PipelineMessage message = CreateModifyAssistantRequest(assistantId, content, options);
return ClientResult.FromResponse(await _pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}

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

using PipelineMessage message = CreateModifyAssistantRequest(assistantId, content, options);
return ClientResult.FromResponse(_pipeline.ProcessMessage(message, options));
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}

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

using PipelineMessage message = CreateDeleteAssistantRequest(assistantId, options);
return ClientResult.FromResponse(await _pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
}

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

using PipelineMessage message = CreateDeleteAssistantRequest(assistantId, options);
return ClientResult.FromResponse(_pipeline.ProcessMessage(message, options));
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
}

/// <inheritdoc cref="InternalAssistantMessageClient.CreateMessageAsync"/>
Expand Down
Loading

0 comments on commit 9029aa0

Please sign in to comment.