Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.ClientModel.Primitives;
using System.Threading.Tasks;

namespace OpenAI.FineTuning;
namespace OpenAI.FineTuningManagement;

public partial class FineTuningClient
public partial class FineTuningManagementClient
{
/// <inheritdoc cref="Internal.FineTuning.CreateFineTuningJob(BinaryContent, RequestOptions)"/>
public virtual ClientResult CreateFineTuningJob(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.ClientModel;

namespace OpenAI.FineTuning;
namespace OpenAI.FineTuningManagement;

/// <summary>
/// The service client for OpenAI fine-tuning operations.
/// </summary>
public partial class FineTuningClient
public partial class FineTuningManagementClient
{
private readonly OpenAIClientConnector _clientConnector;
private Internal.FineTuning FineTuningShim => _clientConnector.InternalClient.GetFineTuningClient();
Expand All @@ -27,7 +27,7 @@ public partial class FineTuningClient
/// <param name="endpoint">The connection endpoint to use.</param>
/// <param name="credential">The API key used to authenticate with the service endpoint.</param>
/// <param name="options">Additional options to customize the client.</param>
public FineTuningClient(Uri endpoint, ApiKeyCredential credential, OpenAIClientOptions options = null)
public FineTuningManagementClient(Uri endpoint, ApiKeyCredential credential, OpenAIClientOptions options = null)
{
_clientConnector = new("none", endpoint, credential, options);
}
Expand All @@ -47,7 +47,7 @@ public FineTuningClient(Uri endpoint, ApiKeyCredential credential, OpenAIClientO
/// </remarks>
/// <param name="endpoint">The connection endpoint to use.</param>
/// <param name="options">Additional options to customize the client.</param>
public FineTuningClient(Uri endpoint, OpenAIClientOptions options = null)
public FineTuningManagementClient(Uri endpoint, OpenAIClientOptions options = null)
: this(endpoint, credential: null, options)
{ }

Expand All @@ -66,7 +66,7 @@ public FineTuningClient(Uri endpoint, OpenAIClientOptions options = null)
/// </remarks>
/// <param name="credential">The API key used to authenticate with the service endpoint.</param>
/// <param name="options">Additional options to customize the client.</param>
public FineTuningClient(ApiKeyCredential credential, OpenAIClientOptions options = null)
public FineTuningManagementClient(ApiKeyCredential credential, OpenAIClientOptions options = null)
: this(endpoint: null, credential, options)
{ }

Expand All @@ -84,7 +84,7 @@ public FineTuningClient(ApiKeyCredential credential, OpenAIClientOptions options
/// </para>
/// </remarks>
/// <param name="options">Additional options to customize the client.</param>
public FineTuningClient(OpenAIClientOptions options = null)
public FineTuningManagementClient(OpenAIClientOptions options = null)
: this(endpoint: null, credential: null, options)
{ }
}
10 changes: 5 additions & 5 deletions .dotnet/src/Custom/OpenAIClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using OpenAI.Chat;
using OpenAI.Embeddings;
using OpenAI.Files;
using OpenAI.FineTuning;
using OpenAI.FineTuningManagement;
using OpenAI.Images;
using OpenAI.LegacyCompletions;
using OpenAI.ModelManagement;
Expand Down Expand Up @@ -143,15 +143,15 @@ public FileClient GetFileClient()
=> new(_cachedEndpoint, _cachedCredential, _cachedOptions);

/// <summary>
/// Gets a new instance of <see cref="FineTuningClient"/> that reuses the client configuration details provided to
/// Gets a new instance of <see cref="FineTuningManagementClient"/> that reuses the client configuration details provided to
/// the <see cref="OpenAIClient"/> instance.
/// </summary>
/// <remarks>
/// This method is functionally equivalent to using the <see cref="FineTuningClient"/> constructor directly with
/// This method is functionally equivalent to using the <see cref="FineTuningManagementClient"/> constructor directly with
/// the same configuration details.
/// </remarks>
/// <returns> A new <see cref="FineTuningClient"/>. </returns>
public FineTuningClient GetFineTuningClient()
/// <returns> A new <see cref="FineTuningManagementClient"/>. </returns>
public FineTuningManagementClient GetFineTuningManagementClient()
=> new(_cachedEndpoint, _cachedCredential, _cachedOptions);

/// <summary>
Expand Down