![]() ![]() OpenAI will not use data submitted by customers via our API to train or improve our models, unless you explicitly decide to share your data with us for this purpose. As of March 8th, 2023, there are two key points to keep in mind: When using one of the shortcuts or submitting text to OpenAI’s APIs, their API data usage policies apply. Think: endless possibilities for creativity, productivity, and fun. With Apple Shortcuts and OpenAI’s Completions API, you can create powerful tools for working with natural language without writing any code. The Share Sheet popping up, find your shortcuts there. Oh, did I mention that shortcuts sync to all of your devices via iCloud? On iOS, you can access your shortcuts from the Share Sheet, which lets you share any content from any app and run your shortcut on it. On macOS, you can access your shortcuts from the context menu via Services, which lets you select any text on any app and run your shortcut on it. ![]() The best part about using Apple Shortcuts is that you can integrate it seamlessly into your operating system. After a while I came up with a single shortcut that asks for the desired target language with a prompt. I started with three shortcuts, one for each target language: English, German, Italian. Most of the time this works way better than conventional translation tools like Google Translate or Apple Translate. You can send a text input in one language and it’ll get translated to another. Let the AI act as a professional editor, fix your mistakes, and improve your writing style. ![]() You can send a text input with errors or typos and it’ll get fixed. My shortcut “Summarize” as shown in Shortcuts.app Proofread text Great for long emails where no one knows what the sender wants to say. Tip: You can send a long text input and set the max_tokens parameter (the maximum number of tokens in the completion) to a lower value (such as 50) to get a shorter summary of the text. Get a nice summary on what a piece of text is all about. Here are some examples of how I’m using shortcuts for different tasks: Summarize text You can then use other actions such as “Show Result”, “Speak Text”, “Copy to Clipboard”, or “Share” to present or use the output. You need to access the key text within choices You can use the “Get Dictionary from Input” action in your shortcut to convert the JSON response into a dictionary object that you can access. The third step is to parse the response and display it in a way that suits your needs. Be sure to set max_tokens to a value that’s practical for you. You can play around with temperature, it’s basically what Bing Chat exposes as three buttons: “Creative”, “Moderate”, “Exact”. It seems like I’m not the only one experiencing this issue. I’m stumped on how to use the streamlined model with the chat completion URL, as Shotcuts.app keeps crashing for me when I try to build a dictionary in the request body. The chat model needs another API URL and different request body, too. Most of the time I’m using the text-davinci-003 as model, it’s way slower than the newer, streamlined model gpt-3.5-turbo (that is being used for ChatGPT), but provides good results throughout. You will need to specify the URL, the HTTP method (POST), the headers ( authorization: Bearer YOUR_API_KEY), and the body (a JSON object with your text input and parameters). You can use the “Get Contents of URL” action in Shortcuts.app to do this. The second step is to create a shortcut that can send an HTTP request the OpenAI Completions API with the text input and the parameters. You could also route your requests through your own backend server where your API key can be securely stored, but this is out of scope for this blog post. This is a secret key that you should not share with others or expose by sharing your Apple shortcut with your co-workers or friends. The first step is to get an API key from OpenAI. I, on the other hand, wanted something more integrated with macOS and iOS, so I took the Shortcuts.app route. My co-worker Hermann developed a Python app, GPT-3 Companion, to streamline his workflows using GPT-3. Plus, no app required – just a no-code approach to get the job done fast. In this blog post, I’ll walk you through using Apple Shortcuts to harness OpenAI’s Completions API in macOS and iOS to make your everyday tasks, like summarizing text, proofreading, and translating, easier and quicker. Knowledge Transfer, Coaching and Trainings.How to use Apple Shortcuts to integrate GPT-3 in macOS and iOS – INNOQ Jump to content INNOQ Homepage Search Menu ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |