Skip to content
Open
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
18 changes: 18 additions & 0 deletions OpenAI_API/IOpenAIAPI.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using OpenAI_API.Chat;
using OpenAI_API.Completions;
using OpenAI_API.Embedding;
using OpenAI_API.Files;
using OpenAI_API.Images;
using OpenAI_API.Models;
using OpenAI_API.Moderation;

namespace OpenAI_API
{
Expand Down Expand Up @@ -37,6 +40,16 @@ public interface IOpenAIAPI
/// </summary>
EmbeddingEndpoint Embeddings { get; }

/// <summary>
/// Text generation in the form of chat messages. This interacts with the ChatGPT API.
/// </summary>
ChatEndpoint Chat { get; }

/// <summary>
/// Classify text against the OpenAI Content Policy.
/// </summary>
ModerationEndpoint Moderation { get; }

/// <summary>
/// The API endpoint for querying available Engines/models
/// </summary>
Expand All @@ -46,5 +59,10 @@ public interface IOpenAIAPI
/// The API lets you do operations with files. You can upload, delete or retrieve files. Files can be used for fine-tuning, search, etc.
/// </summary>
FilesEndpoint Files { get; }

/// <summary>
/// The API lets you do operations with images. You can Given a prompt and/or an input image, the model will generate a new image.
/// </summary>
ImageGenerationEndpoint ImageGenerations { get; }
}
}
2 changes: 0 additions & 2 deletions OpenAI_API/OpenAIAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using OpenAI_API.Images;
using OpenAI_API.Models;
using OpenAI_API.Moderation;
using System.Xml.Linq;

namespace OpenAI_API
{
Expand Down Expand Up @@ -96,6 +95,5 @@ public static OpenAIAPI ForAzure(string YourResourceName, string deploymentId, A
/// The API lets you do operations with images. You can Given a prompt and/or an input image, the model will generate a new image.
/// </summary>
public ImageGenerationEndpoint ImageGenerations { get; }

}
}