├── .github ├── FUNDING.yml └── workflows │ ├── code-quality.yml │ └── deploy-docs.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── Package.resolved ├── Package.swift ├── Playground ├── Playground.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── swiftpm │ │ └── Package.resolved └── Playground │ ├── App │ └── PlaygroundApp.swift │ ├── Preview Content │ └── Preview Assets.xcassets │ │ └── Contents.json │ ├── Resources │ └── Assets.xcassets │ │ ├── AccentColor.colorset │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ └── Contents.json │ │ └── Contents.json │ ├── ViewModels │ └── AppViewModel.swift │ └── Views │ ├── AppView.swift │ ├── ChatView.swift │ ├── FallbackModelView.swift │ ├── PredictedOutputsView.swift │ ├── PreferencesView.swift │ ├── ResponseFormatView.swift │ ├── Subviews │ ├── CancelButton.swift │ ├── NavigationTitle.swift │ ├── SendButton.swift │ └── UsageSection.swift │ ├── ToolUseView.swift │ └── VisionView.swift ├── README.md ├── Sources └── LLMChatOpenAI │ ├── ChatCompletion.swift │ ├── ChatCompletionChunk.swift │ ├── ChatMessage.swift │ ├── ChatOptions.swift │ ├── Documentation.docc │ └── Documentation.md │ ├── LLMChatOpenAI+Typealias.swift │ ├── LLMChatOpenAI.swift │ └── LLMChatOpenAIError.swift └── Tests └── LLMChatOpenAITests ├── ChatCompletionTests.swift ├── ResponseFormatTests.swift ├── ToolUseTests.swift ├── Utils └── URLProtocolMock.swift └── VisionTests.swift /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/workflows/code-quality.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/.github/workflows/code-quality.yml -------------------------------------------------------------------------------- /.github/workflows/deploy-docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/.github/workflows/deploy-docs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/LICENSE -------------------------------------------------------------------------------- /Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Package.resolved -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Package.swift -------------------------------------------------------------------------------- /Playground/Playground.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /Playground/Playground.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /Playground/Playground.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved -------------------------------------------------------------------------------- /Playground/Playground/App/PlaygroundApp.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/App/PlaygroundApp.swift -------------------------------------------------------------------------------- /Playground/Playground/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Preview Content/Preview Assets.xcassets/Contents.json -------------------------------------------------------------------------------- /Playground/Playground/Resources/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Resources/Assets.xcassets/AccentColor.colorset/Contents.json -------------------------------------------------------------------------------- /Playground/Playground/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /Playground/Playground/Resources/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Resources/Assets.xcassets/Contents.json -------------------------------------------------------------------------------- /Playground/Playground/ViewModels/AppViewModel.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/ViewModels/AppViewModel.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/AppView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/AppView.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/ChatView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/ChatView.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/FallbackModelView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/FallbackModelView.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/PredictedOutputsView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/PredictedOutputsView.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/PreferencesView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/PreferencesView.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/ResponseFormatView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/ResponseFormatView.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/Subviews/CancelButton.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/Subviews/CancelButton.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/Subviews/NavigationTitle.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/Subviews/NavigationTitle.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/Subviews/SendButton.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/Subviews/SendButton.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/Subviews/UsageSection.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/Subviews/UsageSection.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/ToolUseView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/ToolUseView.swift -------------------------------------------------------------------------------- /Playground/Playground/Views/VisionView.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Playground/Playground/Views/VisionView.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/README.md -------------------------------------------------------------------------------- /Sources/LLMChatOpenAI/ChatCompletion.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Sources/LLMChatOpenAI/ChatCompletion.swift -------------------------------------------------------------------------------- /Sources/LLMChatOpenAI/ChatCompletionChunk.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Sources/LLMChatOpenAI/ChatCompletionChunk.swift -------------------------------------------------------------------------------- /Sources/LLMChatOpenAI/ChatMessage.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Sources/LLMChatOpenAI/ChatMessage.swift -------------------------------------------------------------------------------- /Sources/LLMChatOpenAI/ChatOptions.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Sources/LLMChatOpenAI/ChatOptions.swift -------------------------------------------------------------------------------- /Sources/LLMChatOpenAI/Documentation.docc/Documentation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Sources/LLMChatOpenAI/Documentation.docc/Documentation.md -------------------------------------------------------------------------------- /Sources/LLMChatOpenAI/LLMChatOpenAI+Typealias.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Sources/LLMChatOpenAI/LLMChatOpenAI+Typealias.swift -------------------------------------------------------------------------------- /Sources/LLMChatOpenAI/LLMChatOpenAI.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Sources/LLMChatOpenAI/LLMChatOpenAI.swift -------------------------------------------------------------------------------- /Sources/LLMChatOpenAI/LLMChatOpenAIError.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Sources/LLMChatOpenAI/LLMChatOpenAIError.swift -------------------------------------------------------------------------------- /Tests/LLMChatOpenAITests/ChatCompletionTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Tests/LLMChatOpenAITests/ChatCompletionTests.swift -------------------------------------------------------------------------------- /Tests/LLMChatOpenAITests/ResponseFormatTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Tests/LLMChatOpenAITests/ResponseFormatTests.swift -------------------------------------------------------------------------------- /Tests/LLMChatOpenAITests/ToolUseTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Tests/LLMChatOpenAITests/ToolUseTests.swift -------------------------------------------------------------------------------- /Tests/LLMChatOpenAITests/Utils/URLProtocolMock.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Tests/LLMChatOpenAITests/Utils/URLProtocolMock.swift -------------------------------------------------------------------------------- /Tests/LLMChatOpenAITests/VisionTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinhermawan/swift-llm-chat-openai/HEAD/Tests/LLMChatOpenAITests/VisionTests.swift --------------------------------------------------------------------------------