adamrushy / OpenAISwift

This is a wrapper library around the ChatGPT and OpenAI HTTP API
MIT License
1.6k stars 242 forks source link

theres a typo for URLRequest it say inout instead of "input" #121

Closed Alexx1105 closed 9 months ago

Alexx1105 commented 9 months ago

let baseURL: String let endpointProvider: OpenAIEndpointProvider let session:URLSession let authorizeRequest: (inout URLRequest) -> Void

marcoboerner commented 9 months ago

@Alexx1105 it's not a bug, inout is a Swift language feature. See here for example https://www.hackingwithswift.com/sixty/5/10/inout-parameters