alfianlosari / ChatGPTSwift

Access ChatGPT API using Swift
MIT License
607 stars 118 forks source link

Misiing "public static let defaultModel = "gpt-3.5-turbo"" #32

Open steinargr opened 2 months ago

steinargr commented 2 months ago

Loks like public static let defaultModel = "gpt-3.5-turbo" is removed from ChatGPTAPI on line 18 should this be added back?

Was present in build 1.7.0 not present in 2.1.0

steinargr commented 2 months ago

using sugested code:

                        let response = try await api.sendMessage(text: "What is ChatGPT?",
                                                                 model: "gpt-4",
                                                                 systemText: "You are a CS Professor",
                                                                 temperature: 0.5)

gives: Cannot convert value of type 'String' to expected argument type 'Components.Schemas.CreateChatCompletionRequest.modelPayload.Value2Payload'