Skip to content

Commit

Permalink
Merge branch 'MacPaw' into MacPaw.codable
Browse files Browse the repository at this point in the history
  • Loading branch information
James J Kalafus committed Feb 15, 2024
2 parents e1d2641 + 4b7b666 commit 0c60094
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/OpenAI/Public/Protocols/OpenAIProtocol+Combine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ public extension OpenAIProtocol {
.eraseToAnyPublisher()
}

func audioCreateSpeech(query: AudioSpeechQuery) -> AnyPublisher<AudioSpeechResult, Error> {
Future<AudioSpeechResult, Error> {
audioCreateSpeech(query: query, completion: $0)
}
.eraseToAnyPublisher()
}

func audioTranscriptions(query: AudioTranscriptionQuery) -> AnyPublisher<AudioTranscriptionResult, Error> {
Future<AudioTranscriptionResult, Error> {
audioTranscriptions(query: query, completion: $0)
Expand Down

0 comments on commit 0c60094

Please sign in to comment.