{"id":30119729,"url":"https://github.com/proxymanapp/gptclientapp","last_synced_at":"2025-08-10T12:41:54.063Z","repository":{"id":299738601,"uuid":"1003049117","full_name":"ProxymanApp/GPTClientApp","owner":"ProxymanApp","description":"Demonstrate how to capture open api endpoint with Proxyman","archived":false,"fork":false,"pushed_at":"2025-06-16T14:42:13.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T00:48:49.011Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProxymanApp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-16T14:41:55.000Z","updated_at":"2025-06-17T00:18:28.000Z","dependencies_parsed_at":"2025-06-18T03:41:52.439Z","dependency_job_id":"1ad64e6f-cd0e-47ad-9c7d-a682322af071","html_url":"https://github.com/ProxymanApp/GPTClientApp","commit_stats":null,"previous_names":["proxymanapp/gptclientapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ProxymanApp/GPTClientApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProxymanApp%2FGPTClientApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProxymanApp%2FGPTClientApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProxymanApp%2FGPTClientApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProxymanApp%2FGPTClientApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProxymanApp","download_url":"https://codeload.github.com/ProxymanApp/GPTClientApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProxymanApp%2FGPTClientApp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269726410,"owners_count":24465376,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-10T12:41:53.310Z","updated_at":"2025-08-10T12:41:53.994Z","avatar_url":"https://github.com/ProxymanApp.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPT Chat App\n\nA simple iOS chat application built with SwiftUI that integrates with OpenAI's GPT-4 API using Server-Side Events for real-time streaming responses.\n\n## Features\n\n- 🎨 **iMessage-style chat bubbles** - Beautiful, rounded chat bubbles with proper alignment\n- 📱 **Native iOS interface** - Clean, modern UI that feels native to iOS\n- ⚡ **Real-time streaming** - Uses Server-Side Events for smooth, real-time GPT responses\n- 🎯 **Smart scrolling** - Auto-scrolls to show new messages with smooth animations\n- ⌨️ **Keyboard-friendly** - Responsive text input with proper keyboard handling\n\n## Setup Instructions\n\n1. **Get your OpenAI API Key**\n   - Go to [OpenAI Platform](https://platform.openai.com/api-keys)\n   - Create a new API key\n   - Copy the key\n\n2. **Configure the app**\n   - Open `GPTClientApp/Config.swift`\n   - Replace `\"YOUR_API_KEY_HERE\"` with your actual OpenAI API key:\n   ```swift\n   static let openAIAPIKey = \"sk-your-actual-api-key-here\"\n   ```\n\n3. **Build and Run**\n   - Open the project in Xcode\n   - Select your target device or simulator\n   - Press `Cmd + R` to build and run\n\n## Architecture\n\nThe app is structured with the following components:\n\n- **`ChatMessage`** - Data model for chat messages\n- **`ChatBubbleView`** - SwiftUI view for individual chat bubbles\n- **`OpenAIService`** - Service class handling OpenAI API communication with SSE\n- **`ContentView`** - Main chat interface with message list and input field\n- **`Config`** - Configuration constants including API key\n\n## Requirements\n\n- iOS 14.0+\n- Xcode 12.0+\n- Valid OpenAI API key with GPT-4 access\n\n## Usage\n\n1. Launch the app\n2. Type your message in the text field at the bottom\n3. Tap the send button (paper plane icon)\n4. Watch as GPT-4 responds in real-time with streaming text\n5. Continue the conversation!\n\n## API Usage\n\nThe app uses OpenAI's Chat Completions API with the following configuration:\n- Model: `gpt-4`\n- Streaming: Enabled (Server-Side Events)\n- Max tokens: 1500\n\n## Security Note\n\nMake sure to keep your API key secure and never commit it to version control. Consider using environment variables or secure keychain storage for production apps. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproxymanapp%2Fgptclientapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproxymanapp%2Fgptclientapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproxymanapp%2Fgptclientapp/lists"}