Skip to content

Commit

Permalink
OpenAI-DotNet 7.3.4 (RageAgainstThePixel#184)
Browse files Browse the repository at this point in the history
- Fixed AudioTranslationRequest.Temperature type. int? -> float?
  • Loading branch information
StephenHodgson committed Nov 24, 2023
1 parent 1d137ea commit 23c8f43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions OpenAI-DotNet/Audio/AudioTranslationRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed class AudioTranslationRequest : IDisposable
string model = null,
string prompt = null,
AudioResponseFormat responseFormat = AudioResponseFormat.Json,
int? temperature = null)
float? temperature = null)
: this(File.OpenRead(audioPath), Path.GetFileName(audioPath), model, prompt, responseFormat, temperature)
{
}
Expand Down Expand Up @@ -70,7 +70,7 @@ public sealed class AudioTranslationRequest : IDisposable
string model = null,
string prompt = null,
AudioResponseFormat responseFormat = AudioResponseFormat.Json,
int? temperature = null)
float? temperature = null)
{
Audio = audio;

Expand Down Expand Up @@ -121,7 +121,7 @@ public sealed class AudioTranslationRequest : IDisposable
/// the model will use log probability to automatically increase the temperature until certain thresholds are hit.<br/>
/// Defaults to 0
/// </summary>
public int? Temperature { get; }
public float? Temperature { get; }

private void Dispose(bool disposing)
{
Expand Down
6 changes: 4 additions & 2 deletions OpenAI-DotNet/OpenAI-DotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ More context [on Roger Pincombe's blog](https://rogerpincombe.com/openai-dotnet-
<RepositoryUrl>https://github.com/RageAgainstThePixel/OpenAI-DotNet</RepositoryUrl>
<PackageTags>OpenAI, AI, ML, API, gpt-4, gpt-3.5-tubo, gpt-3, chatGPT, chat-gpt, gpt-2, gpt, dall-e-2, dall-e-3</PackageTags>
<Title>OpenAI API</Title>
<Version>7.3.3</Version>
<PackageReleaseNotes>Version 7.3.3
<Version>7.3.4</Version>
<PackageReleaseNotes>Version 7.3.4
- Fixed AudioTranslationRequest.Temperature type. int? -&gt; float?
Version 7.3.3
- Fixed Threads.FileCitation json property name
Version 7.3.2
- Added detail parameter to ImageURL
Expand Down

0 comments on commit 23c8f43

Please sign in to comment.