Skip to content

Commit

Permalink
pick up generated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
trrwilson committed Mar 28, 2024
1 parent cd267b3 commit 6053fb1
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .dotnet/src/Generated/Models/CreateTranscriptionRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal partial class CreateTranscriptionRequest
/// <summary> Initializes a new instance of <see cref="CreateTranscriptionRequest"/>. </summary>
/// <param name="file">
/// The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4,
/// mpeg, mpga, m4a, ogg, wav, or webm.
/// mpeg, mpga, m4a, ogg, pcm, wav, or webm.
/// </param>
/// <param name="model">
/// ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model)
Expand All @@ -63,7 +63,7 @@ public CreateTranscriptionRequest(BinaryData file, CreateTranscriptionRequestMod
/// <summary> Initializes a new instance of <see cref="CreateTranscriptionRequest"/>. </summary>
/// <param name="file">
/// The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4,
/// mpeg, mpga, m4a, ogg, wav, or webm.
/// mpeg, mpga, m4a, ogg, pcm, wav, or webm.
/// </param>
/// <param name="model">
/// ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model)
Expand Down Expand Up @@ -114,7 +114,7 @@ internal CreateTranscriptionRequest()

/// <summary>
/// The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4,
/// mpeg, mpga, m4a, ogg, wav, or webm.
/// mpeg, mpga, m4a, ogg, pcm, wav, or webm.
/// <para>
/// To assign a byte[] to this property use <see cref="BinaryData.FromBytes(byte[])"/>.
/// The byte[] will be serialized to a Base64 encoded string.
Expand Down
6 changes: 3 additions & 3 deletions .dotnet/src/Generated/Models/CreateTranslationRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ internal partial class CreateTranslationRequest
/// <summary> Initializes a new instance of <see cref="CreateTranslationRequest"/>. </summary>
/// <param name="file">
/// The audio file object (not file name) to translate, in one of these formats: flac, mp3, mp4,
/// mpeg, mpga, m4a, ogg, wav, or webm.
/// mpeg, mpga, m4a, ogg, pcm, wav, or webm.
/// </param>
/// <param name="model">
/// ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model)
Expand All @@ -62,7 +62,7 @@ public CreateTranslationRequest(BinaryData file, CreateTranslationRequestModel m
/// <summary> Initializes a new instance of <see cref="CreateTranslationRequest"/>. </summary>
/// <param name="file">
/// The audio file object (not file name) to translate, in one of these formats: flac, mp3, mp4,
/// mpeg, mpga, m4a, ogg, wav, or webm.
/// mpeg, mpga, m4a, ogg, pcm, wav, or webm.
/// </param>
/// <param name="model">
/// ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model)
Expand Down Expand Up @@ -100,7 +100,7 @@ internal CreateTranslationRequest()

/// <summary>
/// The audio file object (not file name) to translate, in one of these formats: flac, mp3, mp4,
/// mpeg, mpga, m4a, ogg, wav, or webm.
/// mpeg, mpga, m4a, ogg, pcm, wav, or webm.
/// <para>
/// To assign a byte[] to this property use <see cref="BinaryData.FromBytes(byte[])"/>.
/// The byte[] will be serialized to a Base64 encoded string.
Expand Down
6 changes: 6 additions & 0 deletions .dotnet/src/Generated/Models/OpenAIFilePurpose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public OpenAIFilePurpose(string value)
private const string FineTuneResultsValue = "fine-tune-results";
private const string AssistantsValue = "assistants";
private const string AssistantsOutputValue = "assistants_output";
private const string BatchValue = "batch";
private const string BatchOutputValue = "batch_output";

/// <summary> fine-tune. </summary>
public static OpenAIFilePurpose FineTune { get; } = new OpenAIFilePurpose(FineTuneValue);
Expand All @@ -30,6 +32,10 @@ public OpenAIFilePurpose(string value)
public static OpenAIFilePurpose Assistants { get; } = new OpenAIFilePurpose(AssistantsValue);
/// <summary> assistants_output. </summary>
public static OpenAIFilePurpose AssistantsOutput { get; } = new OpenAIFilePurpose(AssistantsOutputValue);
/// <summary> batch. </summary>
public static OpenAIFilePurpose Batch { get; } = new OpenAIFilePurpose(BatchValue);
/// <summary> batch_output. </summary>
public static OpenAIFilePurpose BatchOutput { get; } = new OpenAIFilePurpose(BatchOutputValue);
/// <summary> Determines if two <see cref="OpenAIFilePurpose"/> values are the same. </summary>
public static bool operator ==(OpenAIFilePurpose left, OpenAIFilePurpose right) => left.Equals(right);
/// <summary> Determines if two <see cref="OpenAIFilePurpose"/> values are not the same. </summary>
Expand Down
1 change: 1 addition & 0 deletions .dotnet/src/OpenAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<Description>This is the OpenAI client library for developing .NET applications with rich experience.</Description>
<AssemblyTitle>SDK Code Generation OpenAI</AssemblyTitle>
<Version>1.0.0-beta.1</Version>
<PackageTags>OpenAI</PackageTags>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
Expand Down
4 changes: 2 additions & 2 deletions audio/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ model CreateSpeechRequest {
model CreateTranscriptionRequest {
/**
* The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4,
* mpeg, mpga, m4a, ogg, wav, or webm.
* mpeg, mpga, m4a, ogg, pcm, wav, or webm.
*/
@encode("binary")
@extension("x-oaiTypeLabel", "file")
Expand Down Expand Up @@ -94,7 +94,7 @@ model CreateTranscriptionRequest {
model CreateTranslationRequest {
/**
* The audio file object (not file name) to translate, in one of these formats: flac, mp3, mp4,
* mpeg, mpga, m4a, ogg, wav, or webm.
* mpeg, mpga, m4a, ogg, pcm, wav, or webm.
*/
@encode("binary")
@extension("x-oaiTypeLabel", "file")
Expand Down
4 changes: 3 additions & 1 deletion files/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ alias FILE_PURPOSE =
| "fine-tune"
| "fine-tune-results"
| "assistants"
| "assistants_output";
| "assistants_output"
| "batch"
| "batch_output";

/** The `File` object represents a document that has been uploaded to OpenAI. */
model OpenAIFile {
Expand Down
10 changes: 6 additions & 4 deletions tsp-output/@typespec/openapi3/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ paths:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/CreateTranscriptionResponseJson'
- $ref: '#/components/schemas/CreateTranscriptionResponseVerboseJson'
- $ref: '#/components/schemas/CreateTranscriptionResponseJson'
text/plain:
schema:
type: string
Expand Down Expand Up @@ -410,8 +410,8 @@ paths:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/CreateTranslationResponseJson'
- $ref: '#/components/schemas/CreateTranslationResponseVerboseJson'
- $ref: '#/components/schemas/CreateTranslationResponseJson'
text/plain:
schema:
type: string
Expand Down Expand Up @@ -3771,7 +3771,7 @@ components:
format: binary
description: |-
The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4,
mpeg, mpga, m4a, ogg, wav, or webm.
mpeg, mpga, m4a, ogg, pcm, wav, or webm.
x-oaiTypeLabel: file
model:
anyOf:
Expand Down Expand Up @@ -3889,7 +3889,7 @@ components:
format: binary
description: |-
The audio file object (not file name) to translate, in one of these formats: flac, mp3, mp4,
mpeg, mpga, m4a, ogg, wav, or webm.
mpeg, mpga, m4a, ogg, pcm, wav, or webm.
x-oaiTypeLabel: file
model:
anyOf:
Expand Down Expand Up @@ -4921,6 +4921,8 @@ components:
- fine-tune-results
- assistants
- assistants_output
- batch
- batch_output
description: |-
The intended purpose of the file. Supported values are `fine-tune`, `fine-tune-results`,
`assistants`, and `assistants_output`.
Expand Down

0 comments on commit 6053fb1

Please sign in to comment.