Run the AIColorPalette demo with custom AIProxy settings
mainTo run the AIColorPalette sample app using your own AIProxy configuration, you must perform two steps: bypass device checks in Xcode and provide your specific AIProxy partial key.
- Bypass Device Checks: Set the
AIPROXY_DEVICE_CHECK_BYPASSenvironment variable in your Xcode build settings. - Configure Partial Key: Open
AIColorPalette/AIProxyIntegration.swiftand replace thepartialKeyplaceholder with the value provided in your AIProxy dashboard (the value generated when you submit your OpenAI key).
# In AIColorPalette/AIProxyIntegration.swift
let partialKey = "YOUR_AI_PROXY_PARTIAL_KEY"