To make this app build and run, one of the OpenAIService configuration blocks in RealtimeManager.swift must be uncommented. To use an OpenAI API key, uncomment:
/* Uncomment for BYOK use cases */
// let openAIService = AIProxy.openAIDirectService(
// unprotectedAPIKey: "your-openai-key"
// )
To route requests through AIProxy, uncomment:
/* Uncomment to protect your connection through AIProxy */
// let openAIService = AIProxy.openAIService(
// partialKey: "partial-key-from-your-developer-dashboard",
// serviceURL: "service-url-from-your-developer-dashboard"
// )
If you want to build and run this app against your existing AIProxy OpenAI service, remember to first add this app's bundle identifier (currently com.aiproxy.OpenAIRealtimeSample) to your Apple Identifier list.
For full integration steps with AIProxy, see the integration guide.