SwiftUI wrapper for vision-related AI tasks
Top 90.9% on sourcepulse
This project provides a SwiftUI wrapper for interacting with OpenAI's vision capabilities, targeting iOS developers who want to integrate AI-powered image analysis into their applications. It offers secure API key management through a proxy script and seamless integration with SwiftUI.
How It Works
The wrapper utilizes a PHP proxy script to handle communication with the OpenAI API, thereby protecting the user's API key. It leverages SwiftUI for a native user interface and integrates with the device's camera and photo library for vision input.
Quick Start & Requirements
location
property in Models/ChatModel.swift
with the URL of your OpenAI proxy script.Privacy - Photo Library Usage Description
and Privacy - Camera Usage Description
in your app's Info.plist
.Highlighted Details
Maintenance & Community
Contributions are welcome via issues or pull requests.
Licensing & Compatibility
Licensed under the MIT License. This license permits commercial use and integration with closed-source applications.
Limitations & Caveats
The project relies on an external proxy script for API communication, which must be hosted and maintained separately. The effectiveness of vision capabilities depends on the underlying OpenAI models and the implementation of the proxy script.
1 year ago
Inactive