{"id":14058026,"url":"https://github.com/adamlyttleapps/OpenAI-Wrapper-SwiftUI","last_synced_at":"2025-07-29T03:31:38.840Z","repository":{"id":247595662,"uuid":"826031093","full_name":"adamlyttleapps/OpenAI-Wrapper-SwiftUI","owner":"adamlyttleapps","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-09T13:06:28.000Z","size":367,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-09T16:33:24.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamlyttleapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-09T01:38:07.000Z","updated_at":"2024-07-09T16:33:32.138Z","dependencies_parsed_at":"2024-07-09T16:33:26.784Z","dependency_job_id":"c6aa0d28-8268-425c-966c-c61144811028","html_url":"https://github.com/adamlyttleapps/OpenAI-Wrapper-SwiftUI","commit_stats":null,"previous_names":["adamlyttleapps/openai-wrapper-swiftui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlyttleapps%2FOpenAI-Wrapper-SwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlyttleapps%2FOpenAI-Wrapper-SwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlyttleapps%2FOpenAI-Wrapper-SwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlyttleapps%2FOpenAI-Wrapper-SwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamlyttleapps","download_url":"https://codeload.github.com/adamlyttleapps/OpenAI-Wrapper-SwiftUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":215122990,"owners_count":15832312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T02:01:06.811Z","updated_at":"2024-08-13T02:03:58.763Z","avatar_url":"https://github.com/adamlyttleapps.png","language":"Swift","readme":"# OpenAI-Wrapper-SwiftUI\n\nAn OpenAI Wrapper built in SwiftUI\n\n[![Watch the video](https://adamlyttleapps.com/demo/OpenAI-Wrapper-SwiftUI/demo-v3.png)](https://adamlyttleapps.com/demo/OpenAI-Wrapper-SwiftUI/demo.mp4)\n\n## Overview\n\nAIWrapper-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\n\n## Features\n\n* SwiftUI Integration: Seamlessly integrates with SwiftUI projects\n* AI Vision Capabilities: Utilize AI to perform various vision-related tasks\n* Secure API Communication: Protect your OpenAI API key using a proxy script\n* Customizable Settings: Easily configure proxy script location and shared secret key\n\n## Usage\n\n1. **Open the code in XCode**\n2. **Update the Proxy Script Location:** In the Models \u003e 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](https://github.com/adamlyttleapps/OpenAI-Proxy-PHP).\n\n```\n//customize the location of the openai_proxy.php script\nprivate let location = \"https://adamlyttleapps.com/demo/OpenAIProxy-PHP/openai_proxy.php\"\n    \n//create a shared secret key, requests to the server use an md5 hash with the shared secret\nprivate let sharedSecretKey = \"secret_key\"\n```\n\n3. **Configure Privacy Settings**: If you are adding this wrapper to an existing project, ensure that you add the following keys to your Info.plist:\n\n```\nPrivacy - Photo Library Usage Description\nPrivacy - Camera Usage Description\n```\n\nThese entries are necessary to request user permissions for accessing the photo library and camera.\n\n## Contributions\n\nContributions are welcome! Feel free to open an issue or submit a pull request on the [GitHub repository](https://github.com/adamlyttleapps/OpenAI-Wrapper-SwiftUI).\n\n## MIT License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n\nThis 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.\n","funding_links":[],"categories":["Misc"],"sub_categories":["SwiftUI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlyttleapps%2FOpenAI-Wrapper-SwiftUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamlyttleapps%2FOpenAI-Wrapper-SwiftUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlyttleapps%2FOpenAI-Wrapper-SwiftUI/lists"}