-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CLIENTS: Send Audio Transcription #381
CLIENTS: Send Audio Transcription #381
Conversation
...Models/Clients/AudioTranscriptions/Exceptions/AudioTranscriptionClientDependencyException.cs
Outdated
Show resolved
Hide resolved
@Catalin-Andronie post a screenshot of this client running please |
...nAI/Models/Clients/AudioTranscriptions/Exceptions/ChatCompletionClientValidationException.cs
Outdated
Show resolved
Hide resolved
ba5d3cb
to
45f4bec
Compare
@hassanhabib Unfortunately this will not work as expected because of the next RESTFulSense missing features:
public class AudioTranscriptionRequest
{
- public double Temperature { get; set; } = 0.2;
+ public string Temperature { get; set; } = "0.2";
}
var inputAudioTranscription = new AudioTranscription
{
Request = new AudioTranscriptionRequest
{
Content = fileContent,
FileName = fileName,
Model = "whisper-1",
- Prompt = null, // This is an optional value and I should not be forced to set its value.
+ Prompt = "Some prompt...",
- Language = "", // This will throw an exception since RESTFulSense doesn't accept empty values.
+ Language = "en"
}
};
AudioTranscription responseAudioTranscription =
await this.openAIClient.AudioTranscriptions.SendAudioTranscriptionAsync(
inputAudioTranscription); @hassanhabib what's your suggestion? |
...OpenAI.Tests.Unit/Services/Foundations/AudioTranscriptions/AudioTranscriptionServiceTests.cs
Outdated
Show resolved
Hide resolved
Reading the API the file in the request is a string. The file should be previously uploaded using the name (string) for this. RESTFulSense already supports this using the |
The API only accepts
Actually, the API specifies to post the file itself as a stream of bytes, the example only illustrates what it should be there. Also, besides the Currently, we are using |
Co-authored-by: Hassan Rezk Habib <hassanhabib@live.com>
cdca630
to
d4a31a3
Compare
Closes #212