Skip to content

Commit

Permalink
test fix audioCreateSpeech > returns unwrapped Data type
Browse files Browse the repository at this point in the history
  • Loading branch information
James J Kalafus committed Feb 14, 2024
1 parent 7cdcc02 commit fcad147
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/OpenAI/Public/Protocols/OpenAIProtocol+Combine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#if canImport(Combine)

import Combine
import Foundation

@available(iOS 13.0, *)
@available(tvOS 13.0, *)
Expand Down Expand Up @@ -113,8 +114,8 @@ public extension OpenAIProtocol {
.eraseToAnyPublisher()
}

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

0 comments on commit fcad147

Please sign in to comment.