Getting blank responses, after recent update from openai

can anyone there help me out??
after the recent update from openai my demo app stop generating response it shows blank response earlier it works fine please help here is the code…

import Foundation
import OpenAISwift

final class APICaller {
static let shared = APICaller()

enum Constants {
    static let key = ""
}

private var client: OpenAISwift?
private var conversationContext: String = ""

private init() {}

public func setup() {
    self.client = OpenAISwift(config: OpenAISwift.Config.makeDefaultOpenAI(apiKey: Constants.key))
}

public func getResponse(input: String, modelName: String, maxLength: Int?, completion: @escaping (Result<String, Error>) -> Void) {
    let combinedInput = conversationContext + input

    client?.sendCompletion(with: combinedInput, maxTokens: 1000, completionHandler: { [weak self] result in
        guard let self = self else { return }
        switch result {
        case .success(let model):
            let output = model.choices?.first?.text ?? ""

            self.conversationContext += output

            completion(.success(output))
        case .failure(let error):
            completion(.failure(error))
        }
    })
}

func main() {
    let apiCaller = APICaller.shared
    apiCaller.setup()

    let modelName = ""gpt-3.5-turbo"

    apiCaller.getResponse(input: ""gpt-3.5-turbo", modelName: modelName, maxLength: nil) { result in
        switch result {
        case .success(let response):
            print("Response: \(response)")
        case .failure(let error):
            print("Error: \(error)")
        }
    }
}

}

Same issue here. Anyone managed to solve this?

This cycle is so frustrating;

  1. You develop an app to given standards
  2. Then they change the standards
  3. Your app breaks immediately w/o warning
  4. You sit for hours on end in order to find out what has been changed
  5. You spend another hours to fix what THEY have changed
  6. TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, TEST, ERRROR, SUCCESS
  7. OpenAI Update
  8. Repeat

I say F-it!