Skip to content
프로젝트

adamlyttleapps/OpenAI-Wrapper-SwiftUI

GitHub에서 보기

소개

AIWrapper-SwiftUI is a SwiftUI-based wrapper designed to leverage AI for vision-related tasks. This wrapper interacts with an OpenAI proxy script to secure API communications and protect your API key

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • SwiftUI Integration: Seamlessly integrates with SwiftUI projects
  • AI Vision Capabilities: Utilize AI to perform various vision-related tasks
  • Secure API Communication: Protect your OpenAI API key using a proxy script
  • Customizable Settings: Easily configure proxy script location and shared secret key

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

OpenAI-Wrapper-SwiftUI

An OpenAI Wrapper built in SwiftUI

Watch the video

Overview

AIWrapper-SwiftUI is a SwiftUI-based wrapper designed to leverage AI for vision-related tasks. This wrapper interacts with an OpenAI proxy script to secure API communications and protect your API key

Features

  • SwiftUI Integration: Seamlessly integrates with SwiftUI projects
  • AI Vision Capabilities: Utilize AI to perform various vision-related tasks
  • Secure API Communication: Protect your OpenAI API key using a proxy script
  • Customizable Settings: Easily configure proxy script location and shared secret key

Usage

  1. Open the code in XCode
  2. Update the Proxy Script Location: In the Models > ChatModel class, update the location property with the URL of your OpenAI proxy script. The source code for the openai_proxy.php script used in the demo is available at: https://github.com/adamlyttleapps/OpenAI-Proxy-PHP.
//customize the location of the openai_proxy.php script
private let location = "https://adamlyttleapps.com/demo/OpenAIProxy-PHP/openai_proxy.php"
    
//create a shared secret key, requests to the server use an md5 hash with the shared secret
private let sharedSecretKey = "secret_key"
  1. Configure Privacy Settings: If you are adding this wrapper to an existing project, ensure that you add the following keys to your Info.plist:
Privacy - Photo Library Usage Description
Privacy - Camera Usage Description

These entries are necessary to request user permissions for accessing the photo library and camera.

Contributions

Contributions are welcome! Feel free to open an issue or submit a pull request on the GitHub repository.

MIT License

This project is licensed under the MIT License. See the LICENSE file for more details.

This README provides a clear overview of the project, detailed usage instructions, and additional sections like examples, contributions, and licensing, making it more comprehensive and user-friendly.

관련 프로젝트 살펴보기

불러오는 중…