Skip to content

SwiftOpenAI v.3.9.6

Latest
Compare
Choose a tag to compare
@jamesrochabrun jamesrochabrun released this 03 Jan 22:18

What's Changed

Predicted outputs support:

Usage:

let code = """
      ScrollView {
         VStack {
            textArea
            Text(chatProvider.errorMessage)
               .foregroundColor(.red)
            streamedChatResultView
         }
      }
"""

let content: ChatCompletionParameters.Message.ContentType = .text("Change this Scrollview to be a list" )
let parameters = ChatCompletionParameters(
     messages: [
         .init(role: .user, content: content),
         .init(role: .user, content: .text(code))], 
     model: .gpt4o,
     prediction: .init(content: .text(code)))
try await openAIService.startChat(parameters: parameters)

Other:

New Contributors

Full Changelog: v3.9.5...v.3.9.6