OpenAI-Wrapper-SwiftUI  by adamlyttleapps

SwiftUI wrapper for vision-related AI tasks

created 1 year ago
294 stars

Top 90.9% on sourcepulse

GitHubView on GitHub
Project Summary

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

  • Open the project in Xcode.
  • Update the location property in Models/ChatModel.swift with the URL of your OpenAI proxy script.
  • Configure Privacy - Photo Library Usage Description and Privacy - Camera Usage Description in your app's Info.plist.
  • The source code for a sample proxy script is available at: https://github.com/adamlyttleapps/OpenAI-Proxy-PHP.

Highlighted Details

  • SwiftUI integration for native iOS development.
  • Secure API key management via a proxy script.
  • Vision-related task capabilities.
  • Customizable proxy script location and shared secret key.

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.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
1
Star History
45 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.