# ChatGPT SwiftUI iOS, macOS, watchOS, tvOS App
![Alt text](https://imagizer.imageshack.com/v2/640x480q90/922/hmlopw.png "image")
This is a native iOS, macOS, watchOS, tvOS App for interacting with ChatGPT built using SwiftUI and OpenAPI API. It's using Official ChatGPT endpoint with `gpt-3.5-turbo` model.
It is also able to render response with markdown and code syntax highlighting.
## Video tutorial
- [iOS YouTube](https://youtu.be/PLEgTCT20zU)
- [macOS YouTube](https://youtu.be/Wl1cDvwpJoE)
- [watchOS YouTube](https://youtu.be/DwXy0gKz1GY)
- [tvOS YouTube](https://youtu.be/7RQHG7GXJ_U)
- [Upgrade to Official API YouTube](https://youtu.be/9byLhs5hQjI)
## Requirements
- Xcode 14
- Register at openai.com/api
- Create API Key
- Paste API key in ContentView where the ChatGPTAPI instance is declared
## ChatGPTSwift API Lib
You can use this standalone api client to access ChatGPT API, you can add dependency for [ChatGPTSwift](https://github.com/alfianlosari/ChatGPTSwift) to access the API only if you want to integrate into your own app.
## GPT Encoder Lib
I've also created [GPTEncoder](https://github.com/alfianlosari/GPTEncoder) Swift BPE Encoder/Decoder for OpenAI GPT Models. A programmatic interface for tokenizing text for OpenAI GPT API.
## GPT Tokenizer UI Lib
I've also created [GPTTokenizerUI](https://github.com/alfianlosari/GPTTokenizerUI), a SPM lib you can integrate in your app for providing GUI to input text and show the tokenization results used by GPT API.
![Alt text](https://imagizer.imageshack.com/v2/640x480q70/922/CEVvrE.png "image")
没有合适的资源?快使用搜索试试~ 我知道了~
ChatGPT本机iOS、macOS、watchOS、tvOSSwiftUI应用程序_Swift_下载.zip
共77个文件
json:41个
swift:19个
png:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 167 浏览量
2023-04-24
14:09:07
上传
评论
收藏 157KB ZIP 举报
温馨提示
ChatGPT本机iOS、macOS、watchOS、tvOSSwiftUI应用程序_Swift_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
ChatGPT本机iOS、macOS、watchOS、tvOSSwiftUI应用程序_Swift_下载.zip (77个子文件)
ChatGPTSwiftUI-main
XCAChatGPTWatch Watch App
XCAChatGPTWatchApp.swift 2KB
Preview Content
Preview Assets.xcassets
Contents.json 63B
Assets.xcassets
profile.imageset
unnamed.jpg 4KB
Contents.json 305B
Contents.json 63B
openai.imageset
Contents.json 304B
openai.png 19KB
AppIcon.appiconset
Contents.json 181B
AccentColor.colorset
Contents.json 224B
XCAChatGPT.xcodeproj
project.pbxproj 48KB
project.xcworkspace
xcshareddata
swiftpm
Package.resolved 1KB
IDEWorkspaceChecks.plist 238B
contents.xcworkspacedata 135B
LICENSE 1KB
XCAChatGPTMac
Preview Content
Preview Assets.xcassets
Contents.json 63B
XCAChatGPTMacApp.swift 1KB
XCAChatGPTMac.entitlements 365B
Assets.xcassets
profile.imageset
unnamed.jpg 4KB
Contents.json 305B
Contents.json 63B
openai.imageset
Contents.json 304B
openai.png 19KB
AppIcon.appiconset
Contents.json 904B
AccentColor.colorset
Contents.json 123B
icon.imageset
Shape.png 1KB
Contents.json 303B
Shared
DotLoadingView.swift 1KB
ChatGPTAPI.swift 6KB
CodeBlockView.swift 3KB
ViewModel.swift 6KB
MarkdownAttributedStringParser.swift 16KB
ResponseParsingTask.swift 476B
ParserResult.swift 282B
MessageRow.swift 883B
ChatGPTAPIModels.swift 1KB
MessageRowView.swift 9KB
ContentView.swift 4KB
.gitignore 2KB
README.MD 2KB
XCAChatGPT
XCAChatGPTApp.swift 2KB
TokenizerViewModel.swift 2KB
TextView.swift 1KB
Preview Content
Preview Assets.xcassets
Contents.json 63B
TokenizerView.swift 5KB
Assets.xcassets
profile.imageset
unnamed.jpg 4KB
Contents.json 305B
Contents.json 63B
openai.imageset
Contents.json 304B
openai.png 19KB
AppIcon.appiconset
Contents.json 177B
AccentColor.colorset
Contents.json 123B
XCAChatGPTTV
XCAChatGPTTVApp.swift 2KB
Preview Content
Preview Assets.xcassets
Contents.json 63B
Assets.xcassets
profile.imageset
unnamed.jpg 4KB
Contents.json 305B
Contents.json 63B
App Icon & Top Shelf Image.brandassets
Contents.json 663B
App Icon - App Store.imagestack
Contents.json 250B
Back.imagestacklayer
Content.imageset
Contents.json 194B
Contents.json 63B
Middle.imagestacklayer
Content.imageset
Contents.json 194B
Contents.json 63B
Front.imagestacklayer
Content.imageset
Contents.json 194B
Contents.json 63B
Top Shelf Image Wide.imageset
Contents.json 326B
App Icon.imagestack
Contents.json 250B
Back.imagestacklayer
Content.imageset
Contents.json 326B
Contents.json 63B
Middle.imagestacklayer
Content.imageset
Contents.json 326B
Contents.json 63B
Front.imagestacklayer
Content.imageset
Contents.json 326B
Contents.json 63B
Top Shelf Image.imageset
Contents.json 326B
openai.imageset
Contents.json 304B
openai.png 19KB
AccentColor.colorset
Contents.json 224B
ScrollView.swift 383B
共 77 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功