Supported Platforms and Compatibility
mainSwiftOpenAI is compatible with Apple platforms and Linux:
- Apple Platforms: iOS 15+, macOS 13+, and watchOS 9+.
- Linux: Uses
AsyncHTTPClientto bypassURLSessionbugs in Apple's Foundation framework. It is compatible with the Vapor server framework.
It also supports various OpenAI-compatible providers such as Azure OpenAI, Anthropic, Gemini, Ollama, Groq, xAI, OpenRouter, Tuning Engines, DeepSeek, and AIProxy. You can use OpenAIServiceFactory to provide custom URLs for these providers.