kevinhermawan/swift-llm-chat-openai
Interact with OpenAI and OpenAI-compatible chat completion APIs in a simple and elegant way. Supports Cohere V2, Groq, Ollama, OpenRouter, Together AI, Perplexity, and more.
This tool helps iOS, macOS, or watchOS developers integrate large language model (LLM) chat capabilities into their Swift applications. It takes user input and a chosen LLM model (like GPT-4o) and returns either a complete text response or a streamed response from various AI providers. The ideal user is a Swift developer building an app that needs to interact with AI chat services.
No commits in the last 6 months.
Use this if you are a Swift developer and need a simple, elegant way to add chat completion features, vision, or function calling from OpenAI and compatible LLMs into your Apple platform application.
Not ideal if you are not a Swift developer or need a solution for a different programming language or platform.
Stars
51
Forks
7
Language
Swift
License
Apache-2.0
Category
Last pushed
Jul 30, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/kevinhermawan/swift-llm-chat-openai"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
OpenDive/OpenAIKit
Swift Package for OpenAI's API
mbabicz/SwiftAI
iOS app that features a chat powered by ChatGPT and DALL·E 2
MaxiDonkey/DelphiGenAI
The GenAI API wrapper for Delphi seamlessly integrates OpenAI’s latest models (gpt-5 serie),...
alfianlosari/ChatGPTSwift
Access ChatGPT API using Swift
Renset/macai
All-in-one native macOS AI chat application for virtually any AI provider