@@ -88,9 +88,15 @@ To configure AIProxy, see the instructions [here](#aiproxy).
88881 .  Open your Swift project in Xcode.
89892 .  Go to ` File `  ->  ` Add Package Dependency ` .
90903 .  In the search bar, enter [ this URL] ( https://github.com/jamesrochabrun/SwiftOpenAI ) .
91- 4 .  Choose the version you'd like to install.
91+ 4 .  Choose the version you'd like to install (see the note below) .
92925 .  Click ` Add Package ` .
9393
94+ Note: Xcode has a quirk where it defaults an SPM package's upper limit to 2.0.0. This package is beyond that
95+ limit, so you should not accept the defaults that Xcode proposes. Instead, enter the lower bound of the
96+ [ release version] ( https://github.com/jamesrochabrun/SwiftOpenAI/releases )  that you'd like to support, and then
97+ tab out of the input box for Xcode to adjust the upper bound. Alternatively, you may select ` branch `  -> ` main ` 
98+ to stay on the bleeding edge.
99+ 
94100## Usage  
95101
96102To use SwiftOpenAI in your project, first import the package:
@@ -3022,10 +3028,11 @@ SwiftOpenAI supports proxying requests through AIProxy with two changes to your
30223028Use: 
30233029
30243030        let  service =  OpenAIServiceFactory.service (
3025-             aiproxyPartialKey : " hardcode_partial_key_here" 
3031+             aiproxyPartialKey : " your_partial_key_goes_here" 
3032+             aiproxyServiceURL : " your_service_url_goes_here" 
30263033        )
30273034
3028- The `aiproxyPartialKey` value  is  provided to you on the [AIProxy developer dashboard](https :// developer.aiproxy.pro)
3035+ The `aiproxyPartialKey` and `aiproxyServiceURL` values are  provided to you on the [AIProxy developer dashboard](https :// developer.aiproxy.pro)
30293036
303030372 . Add an `AIPROXY_DEVICE_CHECK_BYPASS' env variable to Xcode. This token is  provided to you in  the AIProxy
30313038   developer dashboard, and is  necessary for  the iOS simulator to communicate with the AIProxy backend.
0 commit comments