{"id":13640375,"url":"https://github.com/yue-yang/chatgpt-siri","last_synced_at":"2025-05-15T04:03:42.313Z","repository":{"id":100783491,"uuid":"606790323","full_name":"Yue-Yang/ChatGPT-Siri","owner":"Yue-Yang","description":"Shortcuts for Siri using ChatGPT API gpt-3.5-turbo \u0026 gpt-4 model, supports continuous conversations, configure the API key \u0026 save chat records. 由 ChatGPT API gpt-3.5-turbo \u0026 gpt-4 模型驱动的智能 Siri，支持连续对话，配置API key，配置系统prompt，保存聊天记录。","archived":false,"fork":false,"pushed_at":"2023-06-11T02:12:32.000Z","size":10152,"stargazers_count":3694,"open_issues_count":47,"forks_count":165,"subscribers_count":29,"default_branch":"main","last_synced_at":"2025-04-14T01:59:06.301Z","etag":null,"topics":["chatgpt","chatgpt-api","chatgpt3","open-source","siri","siri-shortcuts"],"latest_commit_sha":null,"homepage":"https://twitter.com/YueYangDev","language":null,"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/Yue-Yang.png","metadata":{"files":{"readme":"README-zh_CN.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}},"created_at":"2023-02-26T15:23:02.000Z","updated_at":"2025-04-13T08:17:55.000Z","dependencies_parsed_at":"2024-01-06T21:58:42.628Z","dependency_job_id":null,"html_url":"https://github.com/Yue-Yang/ChatGPT-Siri","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yue-Yang%2FChatGPT-Siri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yue-Yang%2FChatGPT-Siri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yue-Yang%2FChatGPT-Siri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yue-Yang%2FChatGPT-Siri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yue-Yang","download_url":"https://codeload.github.com/Yue-Yang/ChatGPT-Siri/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809032,"owners_count":21164895,"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":["chatgpt","chatgpt-api","chatgpt3","open-source","siri","siri-shortcuts"],"created_at":"2024-08-02T01:01:10.574Z","updated_at":"2025-04-14T01:59:28.800Z","avatar_url":"https://github.com/Yue-Yang.png","language":null,"funding_links":[],"categories":["Prompts"],"sub_categories":[],"readme":"# 🤖️ ChatGPT Siri\n\n通过 Siri 启动「快捷指令」连接 ChatGPT API，让 Siri 变身 AI 聊天助手。你可以直接和 Siri 说出你的问题，Siri 会回答你。现在我们的 Siri 终于变得智能了，可以和我们对答如流！而这一切只需要一个快捷指令和 API key 就可以做到了。\n\n# 准备工作\n\n- 确保网络能正常访问 https://api.openai.com 域名\n- 确保 API 帐户有足够余额：https://platform.openai.com/account/usage\n- 使用 Siri 启动快捷指令，打开设置-》Siri 回答-〉自动。钩上“始终显示你对Siri说的话”，可以方便查看识别是否精准。确保 Siri 的语言设置和你使用的语言一致。\n- 1.2 及以上版本，需要打开「设置」- Apple ID - iCloud - iCloud 云盘 功能，才能使用保存到 txt 文件功能。\n\n## 其他相关问题\n\n- 如何安全使用API key（英文）：https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n- API keys: https://platform.openai.com/account/api-keys\n- API 用量: https://platform.openai.com/account/usage\n- API 价格: https://openai.com/pricing\n- ChatGPT API 常见问题: https://help.openai.com/en/articles/7039783-chatgpt-api-faq\n\n# 快捷指令下载\n\n点击下面链接下载快捷指令，支持 iPhone、iPad、Mac、HomePod、CarPlay。\n\n## 智能聊天 1.0\n\n支持连续聊天，退出聊天，开始新聊天，自定义 API key，自定义 prompt 系统消息，自定义提示语。\n\n- [简体中文版](https://www.icloud.com/shortcuts/620e11d10bc4419497c0fd323e3fe8f1)\n- [English Version](https://www.icloud.com/shortcuts/4535286f97384f839439a865faacb9d2)\n\n## 智能聊天 1.1\n\n\u003e 推荐安装1.2版本，更详细聊天记录，保存到txt文件更方便管理。\n\n支持连续聊天，退出聊天，开始新聊天，自定义 API key，自定义 prompt 系统消息，自定义提示语。\n\n新功能：支持自动保存聊天记录到「备忘录」app。\n\n- [简体中文版](https://www.icloud.com/shortcuts/b7c3c9939c2c43598caa1efcb3dad954)\n- [English Version](https://www.icloud.com/shortcuts/e288497f0de742fdb076195afd3bef86)\n\n## 智能聊天 1.2\n\n支持连续聊天，退出聊天，开始新聊天，自定义 API key，自定义 prompt 系统消息，自定义提示语。\n\n新功能：自动保存聊天数据到 txt 文件中，记录包含每次对话的发送和接收时间、tokens 消耗统计。\n\n\u003e 聊天记录保存位置：打开「文件」app，找到：iCloud 云盘/Shortcuts/ChatGPT-log 目录即可查看，支持 iCloud 同步。\n\u003e \n\u003e 需要打开「设置」- Apple ID - iCloud - iCloud 云盘 功能，才能使用保存到 txt 文件功能。\n\n- [简体中文版](https://www.icloud.com/shortcuts/00838176f7f342008d5a921e8450a98d)\n- [English Version](https://www.icloud.com/shortcuts/dfa38b2abb58470380086dc4b5d50143)\n\n### 智能聊天 1.2.1\n\n功能和1.2相同，另外支持在iPad、iPhone通过共享表单分享文本到快捷指令，Mac上通过快速操作发送文本到快捷指令，以快速启动快捷指令。\n\n- [简体中文版](https://www.icloud.com/shortcuts/592b5aad9b334363b0ee52d8a63f2e72)\n- [English Version](https://www.icloud.com/shortcuts/ed96bcaa8f62475eaf3b5c571606ec32)\n\n### 智能聊天 1.2.2\n\n功能和1.2.1相同，修改新聊天bug。\n\n- [简体中文版](https://www.icloud.com/shortcuts/e79548cd118e45b6a7ad124c891c4ac0)\n- [English Version](https://www.icloud.com/shortcuts/a0e7e6f919de42ce83ffd2af38f653c7)\n\n### 智能聊天 1.2.3\n\n功能和1.2.2相同，增加：\n1. 选择模型功能，支持gpt-4；\n2. 自动复制最后一次回复到剪贴板；\n3. 聊天记录按天分不同文件夹保存；\n4. 添加回默认系统消息。\n\n- [简体中文版](https://www.icloud.com/shortcuts/900b456d30cb48e2b8423efd455b6457)\n- [English Version](https://www.icloud.com/shortcuts/4bc189c3ec344121991ab9d3c98b5533)\n\n### 智能聊天 1.2.4\n\n功能和 1.2.3 相同，修复不同语言系统聊天记录目录可能出现 bug。\n\n- [简体中文版](https://www.icloud.com/shortcuts/f0328cf2683b4b7b99c488866d220115)\n- [English Version](https://www.icloud.com/shortcuts/5590188f4e2541fba4da79b425be6db2)\n\n### 智能聊天 1.2.5\n\n功能和 1.2.4 相同，修改：\n\n1. 增加找不到 choices 错误提示\n2. 去除聊天记录文件名中的 : ，以避免一些潜在目录错误问题\n\n- [简体中文版](https://www.icloud.com/shortcuts/e663292993114a5ba1876023adb5f691)\n- [English Version](https://www.icloud.com/shortcuts/e49118e4243e49cbbd29750b1b741a25)\n\n\u003e gpt-4 目前需要加入waitlist，加入后会收到确认加入waitlist邮件。然后需要等待邀请你使用 gpt-4 api 的确认邮件，拿到资格后，在 playground 后台可以看到，能选择 gpt-4模型进行测试。没有 gpt-4 资格请选择使用 gpt-3.5-turbo 模型。\n\n- gpt-4 api waitlist: https://openai.com/waitlist/gpt-4-api\n- playground：https://platform.openai.com/playground?mode=chat\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg width=\"500\" src=\"img/playground-gpt-4.jpg\" /\u003e\n\u003c/div\u003e\n\n# 常见问题\n\n\u003e 注意：国内已经不能访问 api 了，需要开代理！查看「连接问题」「找不到key」：https://github.com/Yue-Yang/ChatGPT-Siri/discussions/29\n\u003e\n\u003e 我的测试设备是iOS16。据有用户反应，在低版本iOS上，1.2 版本安装不了，你可以选择低版本安装。\n\n# API key 获取\n\n使用「快捷指令」调用 ChatGPT API，必须要有 OpenAI API key。你可以到 OpenAI 官网免费获取，步骤如下：\n\n1. 到 https://platform.openai.com 注册账号并登陆\n2. 点击右上角头像，选择 “View API keys”\n3. 点击页面右侧 “Create new secret key” 按钮生成 API key\n4. 复制 API key，备用。注意 API key 只出现一次。忘了只能重新生成一个新的key。\n\n\u003e 使用 API 需要付费，价格为 $0.0020 / 1K tokens，1k tokens 大约等于 750 个单词，或者 500 个汉字。OpenAI 新用户在头三个月会有 $5 美元免费额度供使用。因此最好不要把 API key 和其他人共享，如果 API key 泄露，可以到 OpenAI 后台删掉，重新生成一个新的。\n\n# 编辑「快捷指令」替换 API key\n\n打开「快捷指令」app，找到下载的「智能聊天」快捷指令，长按选择「编辑」，将上面的 API key 粘贴到下面文本框中。\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg width=\"500\" src=\"img/replace-api-key-cn.png\" /\u003e\n\u003c/div\u003e\n\n# 使用方法\n\n用 Siri 启动「快捷指令」，直接说 “嘿，Siri，智能聊天”，然后就可以开始和 Siri 聊天了，我们的 Siri 变得非常智能，enjoy！🎉\n\n如果你不喜欢这个名字，你可以长按选择重新命名，改成任意你喜欢的名字，然后用 Siri 唤醒就直接说 “嘿，Siri，xxx”，xxx 是你修改的名字，最好不要加特殊符号什么的，不好念😂，识别匹配不了就启动不了！\n\n你当然也可以直接点击使用「快捷指令」，这个时候是以对话框的形式使用，不会读出来，添加到主屏幕更方便点击使用。完结🎉\n\n# 进阶用法\n\n本快捷指令支持 iPhone、iPad 和 Mac，支持连续对话，支持退出聊天，新聊天。用法如下：\n\n- 默认就是支持连续对话，可以记录上下文，可以连续讨论问题\n- 如果你想开启新聊天，在我们输入时说 “新聊天”，Siri 会开启新一轮聊天，这意味着前面的上下文将丢失，不能接着前面的信息继续聊\n- 如果想退出智能聊天以使用系统的 Siri，你可以在自己轮，说 “退出聊天”。当然你也可以直接关闭 Siri，重新在打开。但这里提供命令退出，更自然\n\n## 自定义名字、图标及提示信息\n\n自定义名字和图标\n\n- img1: 修改名字、图标\n- img2: 修改欢迎、继续提示\n\n| img1 | img2 |\n| :-------------: |:-------------:|\n| \u003cimg width=\"200\" src=\"img/IMG_rename-icon-cn.png\" /\u003e | \u003cimg width=\"200\" src=\"img/IMG_welcome-continue-cn.png\" /\u003e |\n\n自定义提示语\n\n- img1: 修改退出聊天命令、退出提示\n- img2: 修改新聊天命令、新聊天欢迎\n\n| img1 | img2 |\n| :-------------: |:-------------:|\n| \u003cimg width=\"200\" src=\"img/IMG_quit-chat-cn.png\" /\u003e | \u003cimg width=\"200\" src=\"img/IMG_new-chat-cn.png\" /\u003e |\n\n## 自定义系统消息\n\n你也可以自定义系统消息，系统消息有助于设置助手的行为。在本「快捷指令」系统消息是使用的 ChatGPT 的默认系统消息之一：\n\n\u003e 你是 ChatGPT，是由 OpenAI 训练的大型语言模型。请尽可能简洁地回答问题。知识截止日期为：2021年9月。\n\n修改方法，编辑「快捷指令」，往下滑，找到如图所示位置：\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg width=\"240\" src=\"img/IMG_system-message-cn.png\" /\u003e\n\u003c/div\u003e\n\n比如，你可以用下面的内容替换系统消息：\n\n\u003e 下面我让你来充当翻译家，你的目标是把任何语言翻译成中文，请翻译时不要带翻译腔，而是要翻译得自然、流畅和地道，使用优美和高雅的表达方式。\n\n当然你也可以自己写，比如让他做段子手、当作家、当厨师等等，有无穷的玩法。你也可以到网络上找别人写的 Prompt，稍加修改填入这里。这里建议分别复制一份「快捷指令」，然后起一个名字，比如当翻译的快捷指令就叫「翻译家」，这样你直接说 “嘿，Siri，翻译家”，就启动一个专门翻译的 ChatGPT 了。\n\n你当然也可以在通用的那个「快捷指令」里面，在自己轮输入时直接说一遍，让他帮你当翻译。但是不如上面那个专门修改了系统消息为翻译的「快捷指令」更方便，这个「翻译家」直接就可以工作了，非常 nice！这也是 Prompt 的意义，可以先自定义一个场景，然后更高效使用 ChatGPT。所以现在网上各种 Prompt 的教程。我们可以举一反三，让 ChatGPT 更好为我们服务！\n\n# AI 画图\n\n## 1.0\n\n- [简体中文版](https://www.icloud.com/shortcuts/b37ad418e4ec4e6d9846baa7df34e6f9)\n- [English Version](https://www.icloud.com/shortcuts/eda268ebbaa64a23bfadc53f7c13c307)\n\n## 1.1\n\n自动保存图片到相册。\n\n- [简体中文版](https://www.icloud.com/shortcuts/82865070e10f4e79a021064518f77ca9)\n- [English Version](https://www.icloud.com/shortcuts/6f8299a858184900b7ab2a4dbf048623)\n\n# 联系\n\n- Discord: \u003ca href=\"https://discord.gg/r28WhZUtK8\" target=\"_blank\"\u003eYueYang Studios\u003c/a\u003e\n- Twitter: \u003ca href=\"https://twitter.com/YueYangDev\" target=\"_blank\"\u003e@YueYangDev\u003c/a\u003e\n- 微博: \u003ca href=\"https://weibo.com/u/1747186121\" target=\"_blank\"\u003e@乐阳YueYang\u003c/a\u003e\n\n## 微信群交流\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg width=\"240\" src=\"img/wx-group5.jpg\" /\u003e\n\u003c/div\u003e\n\n# 请作者喝一杯咖啡 ☕️\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg width=\"240\" src=\"img/support-wx-zan.jpg\" /\u003e\n\u003c/div\u003e\n\n# 👉 [🔋爱发电首页](https://afdian.net/a/YueYangDev)\n\n# 星标历史记录\n\n[![Star History Chart](https://api.star-history.com/svg?repos=Yue-Yang/ChatGPT-Siri\u0026type=Date)](https://star-history.com/#Yue-Yang/ChatGPT-Siri\u0026Date)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyue-yang%2Fchatgpt-siri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyue-yang%2Fchatgpt-siri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyue-yang%2Fchatgpt-siri/lists"}