Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI-DotNet 6.3.2 #55

Merged
merged 6 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
updated docs
  • Loading branch information
StephenHodgson committed Mar 21, 2023
commit 23d774b3f6bf3b482383c9323156910f365e0d78
3 changes: 2 additions & 1 deletion OpenAI-DotNet/Audio/AudioEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
namespace OpenAI.Audio
{
/// <summary>
/// Speech to text.
/// Transforms audio into text.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/audio"/>
/// </summary>
public sealed class AudioEndpoint : BaseEndPoint
{
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 @@ -10,7 +10,7 @@
namespace OpenAI.Chat
{
/// <summary>
/// Given a chat conversation, the model will return a chat completion response.
/// 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
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Completions/CompletionsEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace OpenAI.Completions
/// The way you “program” the API to do a task is by simply describing the task in plain english or providing
/// a few written examples. This simple approach works for a wide range of use cases, including summarization,
/// translation, grammar correction, question answering, chatbots, composing emails, and much more
/// (see the prompt library for inspiration).
/// (see the prompt library for inspiration).<br/>
/// <see href="https://beta.openai.com/docs/api-reference/completions"/>
/// </summary>
public sealed class CompletionsEndpoint : BaseEndPoint
Expand Down
2 changes: 1 addition & 1 deletion OpenAI-DotNet/Edits/EditsEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace OpenAI.Edits
{
/// <summary>
/// Given a prompt and an instruction, the model will return an edited version of the prompt.
/// Given a prompt and an instruction, the model will return an edited version of the prompt.<br/>
/// <see href="https://beta.openai.com/docs/api-reference/edits"/>
/// </summary>
public sealed class EditsEndpoint : BaseEndPoint
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 @@ -6,7 +6,7 @@
namespace OpenAI.Embeddings
{
/// <summary>
/// Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
/// Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.<br/>
/// <see href="https://beta.openai.com/docs/guides/embeddings"/>
/// </summary>
public sealed class EmbeddingsEndpoint : BaseEndPoint
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 @@ -10,7 +10,7 @@
namespace OpenAI.Files
{
/// <summary>
/// Files are used to upload documents that can be used with features like Fine-tuning.
/// Files are used to upload documents that can be used with features like Fine-tuning.<br/>
/// <see href="https://beta.openai.com/docs/api-reference/fine-tunes"/>
/// </summary>
public class FilesEndpoint : BaseEndPoint
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 @@ -12,7 +12,7 @@
namespace OpenAI.FineTuning
{
/// <summary>
/// Manage fine-tuning jobs to tailor a model to your specific training data.
/// Manage fine-tuning jobs to tailor a model to your specific training data.<br/>
/// <see href="https://beta.openai.com/docs/guides/fine-tuning"/>
/// </summary>
public class FineTuningEndpoint : BaseEndPoint
Expand Down
3 changes: 2 additions & 1 deletion OpenAI-DotNet/Images/ImagesEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
namespace OpenAI.Images
{
/// <summary>
/// Creates an image given a prompt.
/// 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
{
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 @@ -8,7 +8,7 @@ namespace OpenAI.Moderations
{
/// <summary>
/// The moderation endpoint is a tool you can use to check whether content complies with OpenAI's content policy.
/// Developers can thus identify content that our content policy prohibits and take action, for instance by filtering it.
/// Developers can thus identify content that our content policy prohibits and take action, for instance by filtering it.<br/>
/// <see href="https://beta.openai.com/docs/api-reference/moderations"/>
/// </summary>
public sealed class ModerationsEndpoint : BaseEndPoint
Expand Down
37 changes: 23 additions & 14 deletions OpenAI-DotNet/OpenAIClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,52 +134,61 @@ private HttpClient SetupClient(HttpClient client = null)
public ModelsEndpoint ModelsEndpoint { get; }

/// <summary>
/// Text generation is the core function of the API.
/// You give the API a prompt, and it generates a completion.
/// The way you “program” the API to do a task is by simply describing the task in plain english
/// or providing a few written examples. This simple approach works for a wide range of use cases,
/// including summarization, translation, grammar correction, question answering, chatbots, composing emails,
/// and much more (see the prompt library for inspiration).
/// Text generation is the core function of the API. You give the API a prompt, and it generates a completion.
/// The way you “program” the API to do a task is by simply describing the task in plain english or providing
/// a few written examples. This simple approach works for a wide range of use cases, including summarization,
/// translation, grammar correction, question answering, chatbots, composing emails, and much more
/// (see the prompt library for inspiration).<br/>
/// <see href="https://beta.openai.com/docs/api-reference/completions"/>
/// </summary>
public CompletionsEndpoint CompletionsEndpoint { get; }

/// <summary>
/// Given a chat conversation, the model will return a chat completion response.
/// 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 ChatEndpoint ChatEndpoint { get; }

/// <summary>
/// Given a prompt and an instruction, the model will return an edited version of the prompt.
/// Given a prompt and an instruction, the model will return an edited version of the prompt.<br/>
/// <see href="https://beta.openai.com/docs/api-reference/edits"/>
/// </summary>
public EditsEndpoint EditsEndpoint { get; }

/// <summary>
/// Given a prompt and/or an input image, the model will generate a new image.
/// 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 ImagesEndpoint ImagesEndPoint { get; }

/// <summary>
/// Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
/// Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.<br/>
/// <see href="https://beta.openai.com/docs/guides/embeddings"/>
/// </summary>
public EmbeddingsEndpoint EmbeddingsEndpoint { get; }

/// <summary>
/// Converts audio into text.
/// Transforms audio into text.<br/>
/// <see href="https://platform.openai.com/docs/api-reference/audio"/>
/// </summary>
public AudioEndpoint AudioEndpoint { get; }

/// <summary>
/// Files are used to upload documents that can be used with features like Fine-tuning.
/// Files are used to upload documents that can be used with features like Fine-tuning.<br/>
/// <see href="https://beta.openai.com/docs/api-reference/fine-tunes"/>
/// </summary>
public FilesEndpoint FilesEndpoint { get; }

/// <summary>
/// Manage fine-tuning jobs to tailor a model to your specific training data.
/// Manage fine-tuning jobs to tailor a model to your specific training data.<br/>
/// <see href="https://beta.openai.com/docs/guides/fine-tuning"/>
/// </summary>
public FineTuningEndpoint FineTuningEndpoint { get; }

/// <summary>
/// The moderation endpoint is a tool you can use to check whether content complies with OpenAI's content policy. Developers can thus identify content that our content policy prohibits and take action, for instance by filtering it.
/// The moderation endpoint is a tool you can use to check whether content complies with OpenAI's content policy.
/// Developers can thus identify content that our content policy prohibits and take action, for instance by filtering it.<br/>
/// <see href="https://beta.openai.com/docs/api-reference/moderations"/>
/// </summary>
public ModerationsEndpoint ModerationsEndpoint { get; }
}
Expand Down