Skip to content

Commit 2f2a50b

Browse files
committed
Documentation fixes for v1.10
1 parent b8feb14 commit 2f2a50b

8 files changed

+23
-16
lines changed

OpenAI_API/Audio/AudioRequest.cs

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace OpenAI_API.Audio
88
{
9+
/// <summary>
10+
/// Parameters for requests made by the <see cref="TranscriptionEndpoint"/>.
11+
/// </summary>
912
public class AudioRequest
1013
{
1114
/// <summary>

OpenAI_API/Audio/ITranscriptionEndpoint.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public interface ITranscriptionEndpoint
1818
/// </summary>
1919
/// <param name="audioStream">The stream containing audio data, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.</param>
2020
/// <param name="filename">The name of the audio file in the stream. This does not have to be real, but it must contain the correct file extension. For example, "file.mp3" if you are supplying an mp3 audio stream.</param>
21-
/// <param name="responseFormat">The format of the response. Suggested value are <see cref="AudioRequest.ResponseFormats.SRT"/> or <see cref="AudioRequest.ResponseFormats.VTT"/>. For text and Json formats, try <see cref="GetTranscriptionTextAsync(Stream, string, string, double?)"/> or <see cref="GetTranscriptionDetailsAsync(Stream, string, string, double?)"/> instead.</param>
21+
/// <param name="responseFormat">The format of the response. Suggested value are <see cref="AudioRequest.ResponseFormats.SRT"/> or <see cref="AudioRequest.ResponseFormats.VTT"/>. For text and Json formats, try <see cref="GetTextAsync(Stream, string, string, string, double?)"/> or <see cref="GetWithDetailsAsync(Stream, string, string, string, double?)"/> instead.</param>
2222
/// <param name="language">The language of the input audio. Supplying the input language in ISO-639-1 format will improve accuracy and latency.</param>
2323
/// <param name="prompt">An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.</param>
2424
/// <param name="temperature">The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.</param>
@@ -29,7 +29,7 @@ public interface ITranscriptionEndpoint
2929
/// Gets the transcription of the audio file, in the specified format
3030
/// </summary>
3131
/// <param name="audioFilePath">The local path to the audio file, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.</param>
32-
/// <param name="responseFormat">The format of the response. Suggested value are <see cref="AudioRequest.ResponseFormats.SRT"/> or <see cref="AudioRequest.ResponseFormats.VTT"/>. For text and Json formats, try <see cref="GetTranscriptionTextAsync(Stream, string, string, double?)"/> or <see cref="GetTranscriptionDetailsAsync(Stream, string, string, double?)"/> instead.</param>
32+
/// <param name="responseFormat">The format of the response. Suggested value are <see cref="AudioRequest.ResponseFormats.SRT"/> or <see cref="AudioRequest.ResponseFormats.VTT"/>. For text and Json formats, try <see cref="GetTextAsync(string, string, string, double?)"/> or <see cref="GetWithDetailsAsync(string, string, string, double?)"/> instead.</param>
3333
/// <param name="language">The language of the input audio. Supplying the input language in ISO-639-1 format will improve accuracy and latency.</param>
3434
/// <param name="prompt">An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.</param>
3535
/// <param name="temperature">The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.</param>

OpenAI_API/Audio/TextToSpeechRequest.cs

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
namespace OpenAI_API.Audio
77
{
8+
/// <summary>
9+
/// A request to the <see cref="TextToSpeechEndpoint"/>.
10+
/// </summary>
811
public class TextToSpeechRequest
912
{
1013
/// <summary>

OpenAI_API/Audio/TranscriptionEndpoint.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public async Task<AudioResultVerbose> GetWithDetailsAsync(string audioFilePath,
136136
/// </summary>
137137
/// <param name="audioStream">The stream containing audio data, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.</param>
138138
/// <param name="filename">The name of the audio file in the stream. This does not have to be real, but it must contain the correct file extension. For example, "file.mp3" if you are supplying an mp3 audio stream.</param>
139-
/// <param name="responseFormat">The format of the response. Suggested value are <see cref="AudioRequest.ResponseFormats.SRT"/> or <see cref="AudioRequest.ResponseFormats.VTT"/>. For text and Json formats, try <see cref="GetTranscriptionTextAsync(Stream, string, string, double?)"/> or <see cref="GetTranscriptionDetailsAsync(Stream, string, string, double?)"/> instead.</param>
139+
/// <param name="responseFormat">The format of the response. Suggested value are <see cref="AudioRequest.ResponseFormats.SRT"/> or <see cref="AudioRequest.ResponseFormats.VTT"/>. For text and Json formats, try <see cref="GetTextAsync(Stream, string, string, string, double?)"/> or <see cref="GetWithDetailsAsync(Stream, string, string, string, double?)"/> instead.</param>
140140
/// <param name="language">The language of the input audio. Supplying the input language in ISO-639-1 format will improve accuracy and latency.</param>
141141
/// <param name="prompt">An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.</param>
142142
/// <param name="temperature">The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.</param>
@@ -175,7 +175,7 @@ public async Task<string> GetAsFormatAsync(Stream audioStream, string filename,
175175
/// Gets the transcription of the audio file, in the specified format
176176
/// </summary>
177177
/// <param name="audioFilePath">The local path to the audio file, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.</param>
178-
/// <param name="responseFormat">The format of the response. Suggested value are <see cref="AudioRequest.ResponseFormats.SRT"/> or <see cref="AudioRequest.ResponseFormats.VTT"/>. For text and Json formats, try <see cref="GetTranscriptionTextAsync(Stream, string, string, double?)"/> or <see cref="GetTranscriptionDetailsAsync(Stream, string, string, double?)"/> instead.</param>
178+
/// <param name="responseFormat">The format of the response. Suggested value are <see cref="AudioRequest.ResponseFormats.SRT"/> or <see cref="AudioRequest.ResponseFormats.VTT"/>. For text and Json formats, try <see cref="GetTextAsync(string, string, string, double?)"/> or <see cref="GetWithDetailsAsync(string, string, string, double?)"/> instead.</param>
179179
/// <param name="language">The language of the input audio. Supplying the input language in ISO-639-1 format will improve accuracy and latency.</param>
180180
/// <param name="prompt">An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.</param>
181181
/// <param name="temperature">The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.</param>

OpenAI_API/Chat/Conversation.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public Conversation(ChatEndpoint endpoint, OpenAI_API.Models.Model model = null,
6666
}
6767

6868
/// <summary>
69-
/// A list of messages exchanged so far. To append to this list, use <see cref="AppendMessage(ChatMessage)"/>, <see cref="AppendUserInput(string)"/>, <see cref="AppendSystemMessage(string)"/>, or <see cref="AppendExampleChatbotOutput(string)"/>.
69+
/// A list of messages exchanged so far. To append to this list, use <see cref="AppendMessage(ChatMessage)"/>, <see cref="AppendUserInput(string, ChatMessage.ImageInput[])"/>, <see cref="AppendSystemMessage(string)"/>, or <see cref="AppendExampleChatbotOutput(string)"/>.
7070
/// </summary>
7171
public IList<ChatMessage> Messages { get => _Messages; }
7272
private List<ChatMessage> _Messages;

OpenAI_API/Files/IFilesEndpoint.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Collections.Generic;
22
using System.Threading.Tasks;
3+
using System.Net.Http;
34

45
namespace OpenAI_API.Files
56
{

OpenAI_API/OpenAI_API.csproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
77
<Authors>OkGoDoIt (Roger Pincombe)</Authors>
88
<Product>OpenAI API</Product>
9-
<Description>A simple C# / .NET library to use with OpenAI's APIs, including GPT 3.5, GPT 4, ChatGPT, DALL-E, etc. Independently developed, this is not an official library and I am not affiliated with OpenAI. An OpenAI or Azure OpenAI account is required.</Description>
9+
<Description>A simple C# / .NET library to use with OpenAI's APIs, including GPT 3.5, GPT 4, ChatGPT, DALL-E, Whisper, etc. Independently developed, this is not an official library and I am not affiliated with OpenAI. An OpenAI or Azure OpenAI account is required.</Description>
1010
<Copyright>This library is licensed CC-0, in the public domain</Copyright>
1111
<PackageLicenseExpression>CC0-1.0</PackageLicenseExpression>
1212
<PackageProjectUrl>https://github.com/OkGoDoIt/OpenAI-API-dotnet</PackageProjectUrl>
1313
<RepositoryUrl>https://github.com/OkGoDoIt/OpenAI-API-dotnet</RepositoryUrl>
14-
<PackageTags>OpenAI, AI, ML, API, ChatGPT, DALLE, GPT3, GPT-3, GPT4, GPT-4, DALL-E</PackageTags>
14+
<PackageTags>OpenAI, AI, ML, API, ChatGPT, DALLE, GPT3, GPT-3, GPT4, GPT-4, DALL-E, Whisper, TTS</PackageTags>
1515
<Title>OpenAI API</Title>
16-
<PackageReleaseNotes>Adds updated models as of December 11, 2023, including the new GPT-4 Vision, GPT-4 Turbo, and DALL-E 3. Adds json result format. Fixes chat result streaming bug.</PackageReleaseNotes>
16+
<PackageReleaseNotes>Adds updated models as of December 13, 2023, including the new GPT-4 Vision, GPT-4 Turbo, and DALL-E 3. Adds text-to-speech as well as audio transcriptions and translations (Whisper).</PackageReleaseNotes>
1717
<PackageId>OpenAI</PackageId>
18-
<Version>1.9</Version>
19-
<AssemblyVersion>1.9.0.0</AssemblyVersion>
20-
<FileVersion>1.9.0.0</FileVersion>
18+
<Version>1.10</Version>
19+
<AssemblyVersion>1.10.0.0</AssemblyVersion>
20+
<FileVersion>1.10.0.0</FileVersion>
2121
<GenerateDocumentationFile>True</GenerateDocumentationFile>
2222
<PackageReadmeFile>README.md</PackageReadmeFile>
2323
<ProduceReferenceAssembly>True</ProduceReferenceAssembly>

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Console.WriteLine(result);
2626
* [JSON Mode](#json-mode)
2727
* [Completions API](#completions)
2828
* [Streaming completion results](#streaming)
29-
* Audio
30-
* Text to Speech
31-
* Transcribe Audio to Text
32-
* Translate Audio to English Text
29+
* [Audio](#audio)
30+
* [Text to Speech](#text-to-speech-tts)
31+
* [Transcribe Audio to Text](#transcription-speech-to-text)
32+
* [Translate Audio to English Text](#translations-non-english-speech-to-english-text)
3333
* [Embeddings API](#embeddings)
3434
* [Moderation API](#moderation)
3535
* [Files API](#files-for-fine-tuning)
@@ -42,7 +42,7 @@ Console.WriteLine(result);
4242
## Status
4343
[![OpenAI](https://badgen.net/nuget/v/OpenAI)](https://www.nuget.org/packages/OpenAI/)
4444

45-
Adds updated models as of December 13, 2023, including the new [GPT-4 Vision](#gpt-vision), GPT-4 Turbo, and [DALL-E 3](#dall-e-3). Adds text-to-speech as well as audio transcription and translation (Whisper). Adds [json result format](#json-mode). Fixes chat result streaming bug.
45+
Adds updated models as of December 13, 2023, including the new [GPT-4 Vision](#gpt-vision), GPT-4 Turbo, and [DALL-E 3](#dall-e-3). Adds [text-to-speech](#text-to-speech-tts) as well as [audio transcriptions](#transcription-speech-to-text) and [translations](#translations-non-english-speech-to-english-text) (Whisper). Adds [json result format](#json-mode). Fixes chat result streaming bug.
4646
Support for assistants and other new features shown at OpenAI DevDay will be coming soon, but are not yet implemented.
4747

4848
## Requirements

0 commit comments

Comments
 (0)