Skip to content

Commit

Permalink
rename BaseEndPoint -> OpenAIBaseEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Feb 25, 2024
1 parent b459a64 commit 62940bd
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Assistants/AssistantsEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace OpenAI.Assistants
{
public sealed class AssistantsEndpoint : BaseEndPoint
public sealed class AssistantsEndpoint : OpenAIBaseEndpoint
{
internal AssistantsEndpoint(OpenAIClient client) : base(client) { }

Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Audio/AudioEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace OpenAI.Audio
/// Transforms audio into text.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/audio"/>
/// </summary>
public sealed class AudioEndpoint : BaseEndPoint
public sealed class AudioEndpoint : OpenAIBaseEndpoint
{
private class AudioResponse
{
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Chat/ChatEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace OpenAI.Chat
/// Given a chat conversation, the model will return a chat completion response.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/chat"/>
/// </summary>
public sealed class ChatEndpoint : BaseEndPoint
public sealed class ChatEndpoint : OpenAIBaseEndpoint
{
/// <inheritdoc />
public ChatEndpoint(OpenAIClient client) : base(client) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

namespace OpenAI
{
public abstract class BaseEndPoint
public abstract class OpenAIBaseEndpoint
{
protected BaseEndPoint(OpenAIClient client) => this.client = client;
protected OpenAIBaseEndpoint(OpenAIClient client) => this.client = client;

// ReSharper disable once InconsistentNaming
protected readonly OpenAIClient client;
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Embeddings/EmbeddingsEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace OpenAI.Embeddings
/// Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.<br/>
/// <see href="https://platform.openai.com/docs/guides/embeddings"/>
/// </summary>
public sealed class EmbeddingsEndpoint : BaseEndPoint
public sealed class EmbeddingsEndpoint : OpenAIBaseEndpoint
{
/// <inheritdoc />
public EmbeddingsEndpoint(OpenAIClient client) : base(client) { }
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Files/FilesEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace OpenAI.Files
/// Files are used to upload documents that can be used with features like Fine-tuning.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/files"/>
/// </summary>
public sealed class FilesEndpoint : BaseEndPoint
public sealed class FilesEndpoint : OpenAIBaseEndpoint
{
private class FilesList
{
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/FineTuning/FineTuningEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace OpenAI.FineTuning
/// <see href="https://platform.openai.com/docs/guides/fine-tuning"/><br/>
/// <see href="https://platform.openai.com/docs/api-reference/fine-tuning"/>
/// </summary>
public sealed class FineTuningEndpoint : BaseEndPoint
public sealed class FineTuningEndpoint : OpenAIBaseEndpoint
{
/// <inheritdoc />
public FineTuningEndpoint(OpenAIClient client) : base(client) { }
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Images/ImagesEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace OpenAI.Images
/// Given a prompt and/or an input image, the model will generate a new image.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/images"/>
/// </summary>
public sealed class ImagesEndpoint : BaseEndPoint
public sealed class ImagesEndpoint : OpenAIBaseEndpoint
{
/// <inheritdoc />
internal ImagesEndpoint(OpenAIClient client) : base(client) { }
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Models/ModelsEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace OpenAI.Models
/// You can refer to the Models documentation to understand which models are available for certain endpoints: <see href="https://platform.openai.com/docs/models/model-endpoint-compatibility"/>.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/models"/>
/// </summary>
public sealed class ModelsEndpoint : BaseEndPoint
public sealed class ModelsEndpoint : OpenAIBaseEndpoint
{
private sealed class ModelsList
{
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Moderations/ModerationsEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace OpenAI.Moderations
/// Developers can thus identify content that our content policy prohibits and take action, for instance by filtering it.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/moderations"/>
/// </summary>
public sealed class ModerationsEndpoint : BaseEndPoint
public sealed class ModerationsEndpoint : OpenAIBaseEndpoint
{
/// <inheritdoc />
public ModerationsEndpoint(OpenAIClient client) : base(client) { }
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Threads/ThreadsEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace OpenAI.Threads
/// Create threads that assistants can interact with.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/threads"/>
/// </summary>
public sealed class ThreadsEndpoint : BaseEndPoint
public sealed class ThreadsEndpoint : OpenAIBaseEndpoint
{
public ThreadsEndpoint(OpenAIClient client) : base(client) { }

Expand Down

0 comments on commit 62940bd

Please sign in to comment.