<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sean Chen on Medium]]></title>
        <description><![CDATA[Stories by Sean Chen on Medium]]></description>
        <link>https://medium.com/@SeanChenU?source=rss-70c2966821d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xCLMRhaZbNEgVHFRD44LAw.jpeg</url>
            <title>Stories by Sean Chen on Medium</title>
            <link>https://medium.com/@SeanChenU?source=rss-70c2966821d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:40:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SeanChenU/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The agile mindset to hire developers outside your companies]]></title>
            <link>https://medium.com/@SeanChenU/the-agile-mindset-to-hire-developers-outside-your-companies-7404fef29eef?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7404fef29eef</guid>
            <category><![CDATA[development-and-growth]]></category>
            <category><![CDATA[outsource]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Tue, 16 Apr 2024 06:10:03 GMT</pubDate>
            <atom:updated>2024-04-16T06:10:03.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wkpd4AfDrm6gRsN0glnsmQ.jpeg" /></figure><p>While many companies are developing software, the decision often made to build their team development or to find external partners to develop. Internal team allows the executives have more control over the situation, but it will require tremendous time and cost to manage. In the age of agile, looking for external resources will be one of the leaner options. So enterprise can focus on its core values and push forward to the next milestone.</p><ul><li><strong>Leaner Cost Structure</strong></li></ul><p>Some may consider that outsourcing to the software agencies requires high amount of expense, but with close comparison ones will find that outsourcing is actually more cost-effective than building in-house team. Several problems may arise after the organization hires new developers. To begin with, the compensation of the developers might lead to high expense. Also, the workspace for the employees needs to be prepared. Furthermore, in addition to the corporate tax, companies must provide employees with welfare under government policies (for example Singapore’s CPF policy), which is an extra and long-term cost. After the product development has been completed, there will be a period without intense work. But for the maintenance, the company must continue to pay the enormous salary to run a development team, which might lead to financial burden.</p><p>The outsourced team members are professional talents with long-term cooperation and ambition. The company can launch products with a leaner manner. As long as the company lists clear requirements and expectations, the external development partners can provide professional services.</p><ul><li><strong>Faster Time-to-market</strong></li></ul><p>To build a development team, finding the right members could take couple months or even years, to recruit as well as to train. It might result in missing business opportunities. With hiring the development team outside your organization, companies don’t have to spend time on training their teams. As long as the project is set up, it can be started immediately, and the development cycle will be shorter.</p><ul><li><strong>Minimize risk</strong></li></ul><p>High-quality software can’t be done by a participant individually, even with excellent talents. The teamwork of the software development team is the key to the success of product development. However, the beginning of organizing a team, the abilities of members is inconsistent. It will takes time for them to interact and organize. If the product has to be completed on time, it may increase the error rate and risk. In contrast, the outsourcing team has a set of standard processes of development and division of labor. And the developers of the outsourcing team with rich practical experience have long-term cooperation and tacit understanding. The mistakes and risks are therefore greatly reduced.</p><ul><li><strong>Agility with quality</strong></li></ul><p>The practical experience of developers is critical to the overall fluidity of development, so developers with less experienced developers may have higher error rates than more experienced developers. Especially in the early stage of development, when the members of the self-organized team have less teamwork experience and choose the wrong software framework, it will lead to the subsequent impact on the entire development process and quality. Tech debt . The outsourcing group’s advantage not only has a professional background but also a lot of outsourcing experience compared to the self-organized team. Under the long-term tacit understanding, it is not easy for the members of the outsourcing group to have conflicts of ideas. The concept of development is also based on the past practical experience of cooperation, so they can choose the appropriate framework directly and streamline development. The occurrence of errors will be greatly reduced so that more time is spent on producing the best quality.</p><ul><li><strong>Continuous Deployment</strong></li></ul><p>When the company develops without a follow-up case after the product releases, the turnover of the self-organized team member will increase. As a result, maintenance of the product may face problems, which will have a great impact on the enterprise. And, if they are developed by the outsourcing company, they have a complete after-sales maintenance plan to ensure that online products are stable and can be resolved in time if they have problems.</p><p>Looking at the above, if the company chooses to let the <a href="https://appar.com.tw/en/article/building_or_outsourcing_software_team_offshore.html">outsourcing team develop</a>, it can bring the maximum benefit within the shortest time. Not only saving the entire development cost but also reducing the long-term opportunities loss. The practical experience of the outsourcing team assists the overall product development and achieves the company’s requirements quickly and accurately to reduce the possibility of error, improve product quality and shorten the development cycle. And after-sales maintenance has its own complete set of processes to make the product stable development. If the company is considering the pros and cons of both, <a href="https://appar.com.tw/en/">outsourcing team development</a> will be your best choice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7404fef29eef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An In-depth Introduction to OpenAI DevDay: What Was Unveiled Besides GPT-4 Turbo?]]></title>
            <link>https://medium.com/@SeanChenU/an-in-depth-introduction-to-openai-devday-what-was-unveiled-besides-gpt-4-turbo-066f7cf4b591?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/066f7cf4b591</guid>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[gpt-4-turbo]]></category>
            <category><![CDATA[sam-altman]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[gpt-4]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Wed, 22 Nov 2023 11:31:57 GMT</pubDate>
            <atom:updated>2023-11-22T11:31:57.647Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article is from the </em><a href="https://appar.com.tw/en/"><em>Appar Technologies</em></a><em> Blog.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_hTYR0397wYmEysS.png" /><figcaption>AI Image generated using the latest DALL•E 3 model</figcaption></figure><p>On November 6, 2023, OpenAI hosted its OpenAI DevDay, where CEO Sam Altman once again surpassed previous OpenAI achievements, unlocking new possibilities for AI developers. This article delves into the allure of GPT-4 Turbo for software developers.</p><p>OpenAI hosted the OpenAI DevDay on November 6, 2023. As other major tech companies struggle to catch up with the performance of GPT-4, CEO Sam Altman has once again led OpenAI to surpass itself, offering AI developers entirely new possibilities and solidifying OpenAI’s leading position in artificial intelligence.</p><h3>The Game-Changing GPT-4 Turbo: Faster, Bigger Text Capacity, and Cheaper</h3><p>The term ‘context’ refers to the total volume of text inputted to a large language model, including prompts and dialogues. Previously, the maximum text capacity was limited to 32,000 tokens (and only available to certain developers). Now, GPT-4 Turbo allows a massive text capacity of up to 128,000 tokens, equivalent to inputting a 300-page book in one go, enabling the model to generate content based on it.</p><p>One of the most criticized aspects of the previous GPT-4 was its slow speed, which often resulted in long wait times during generation. This issue was a reason many businesses still used GPT-3.5 for most practical applications. GPT-4 Turbo addresses this by achieving speeds closer to GPT-3.5, enriching potential integration scenarios with GPT-4 Turbo. Cost-wise, compared to the previous version of GPT-4, the price for prompts has been halved (3x cheaper), and text output costs have also been reduced by half (2x cheaper).</p><h3>A More Developer-Friendly Function Calling Feature</h3><h4>What is Function Calling?</h4><p>Earlier this year, OpenAI released the ‘Function Calling’ feature, <strong>allowing developers to call custom code functions while using GPT</strong>, significantly broadening the application field of OpenAI. The model’s powerful performance lies in the fact that developers need only to provide multiple command interfaces for the program, and GPT can decide which command to call and execute with the appropriate parameters.</p><p>For example, a smart light bulb developer may offer two commands: ‘Set Color’ and ‘Set Sensor On/ Off Period.’ The ‘Set Color’ command has three parameter options: white light, natural light, and night light. When the prompt “Please help me set the light bulb for nighttime” is inputted into GPT, it will automatically decide to use the ‘Set Color’ command with the parameter ‘night light,’ a decision-making process that requires no human intervention. Previously, reaching such functionality required NLP technology to write customized logic. Now, simply calling the GPT program can achieve it.</p><h4>What’s Changed This Time?</h4><p>This update allows GPT to more accurately determine which commands and parameters to use and has improved upon the limitation of only being able to call one command at a time. Previously, in more complex scenarios, developers had to write additional code to call functions multiple times; this update <strong>allows GPT to execute multiple commands at once, with the results of each command being transferable to one another</strong>. For instance, using the prompt “I tend to wake up at night to drink water, please help me set an appropriate light bulb mode,” GPT could decide to call both ‘Set Color’ and ‘Set Sensor On/ Off Period’ commands, choosing the ‘Sensing Period’ parameter as ‘from 01:00 to 06:30’ and the ‘Set Color’ parameter as ‘night light.’</p><h4>Support JSON response</h4><p>Additionally, the language model’s responses were traditionally in ‘unspecified text format.’ If a specific format was desired, one had to request “Please reply in XML format” within the prompt. However, developers often encountered issues where the response was not strictly in XML format, sometimes mixed with plain text, leading to errors during format conversion. Now, GPT-4 Turbo allows developers to set the parameter response_format to common API return formats such as XML or JSON, enhancing program stability.</p><h4>Seed Parameter</h4><p>Finally, OpenAI has introduced the ability for users to set the <strong>‘Seed’ parameter, which determines the randomness of GPT’s output</strong>. By setting this parameter, developers can ensure consistency in the model’s responses, giving peace of mind when writing test cases (avoiding unexpected different answers from the language model) and increasing the testability and quality of the program.</p><p>Beyond the two main points released, in terms of expanding application scenarios, the release of the Assistants API was the highlight of DevDay.</p><h3>Assistants API (Assistants API)</h3><p>In the past, to develop generative AI applications with large language models, one needed to use third-party packages like LangChain to grant the language model more advanced capabilities, such as using multiple language models concurrently, customizing data, and agent capabilities (allowing AI to perform continuous tasks and make sequential decisions) to complete more complex AI scenario applications.</p><p>The Assistants API released at DevDay integrates the aforementioned capabilities into the official API, saving developers the trouble of integrating third-party packages. <strong>This marks the first time the official has moved beyond purely optimizing the performance of large language models and has begun to explore the application of ‘agents’</strong>. The official documentation states, “An assistant is a goal-oriented AI that allows the use of specific commands, external data, or different language models and tools to perform tasks.”</p><p>The new Assistants API also has several built-in tools, including the aforementioned ‘Function Calling,’ as well as a ‘Code Interpreter’ and ‘Retrieval.’</p><h4>Code Interpreter (Code Interpreter)</h4><p>The ‘Code Interpreter’ for GPT-4 allows code written by itself to be executed in a sandbox environment (currently only supporting Python). Previously, engineers had to copy and paste code written with the help of GPT-4 into their own development environment for testing. The sandbox environment provided by OpenAI is sufficient for GPT-4 to self-check the correctness of the code and modify the code step by step after execution until the desired outcome is achieved.</p><p>However, the significance of the Code Interpreter goes beyond “letting GPT-4 check the correctness of its written code.” <strong>It means “giving the large language model its own computer,</strong>” a computer capable of executing most tasks. Now, the large language model can interact programmatically, and although the execution in the restricted sandbox environment means the Code Interpreter can only use certain third-party packages, it is still sufficient to perform “most tasks that Python is adept at handling,” such as data processing and API calls, and can read larger code files provided by users.</p><p>In terms of security, the sandbox environment prevents the powerful capabilities of the large language model from being misused, thereby offering a degree of security assurance.</p><h4>Retrieval (Retrieval)</h4><p>‘Retrieval’ allows users to upload their data (e.g., industry-specific data, product information, or internal documents) enabling the large language model to answer queries based on this data, applying it to their own industry or domain. This feature has been a focal point since the release of GPT-3. The Retrieval released at DevDay is the official’s first native solution to this functionality, for instance, <strong>to help businesses build internal knowledge robots, such as AI project managers, AI system analysts; customer service robots in medical, financial, and other domains</strong> that previously required complex language processing technology to implement.</p><p>Now, with the powerful GPT-4 language model and the Retrieval functionality provided by OpenAI, developers can focus on business logic, data accuracy, and fine-tuning details.</p><p>Additionally, the vector databases [1], data segmentation processing, or specific search algorithms required when using third-party packages are no longer needed with the support of OpenAI, eliminating the extra development processes and associated costs. OpenAI also emphasizes that the conversations and files used by the Assistants API will not be used to train OpenAI’s next-generation models.</p><h3>Conclusion</h3><p>Overall, OpenAI continues to optimize the efficiency of its models and expand the applications of large language models. Sam Altman has stated that GPT-5 will not be released in the short term, and given the current precision of GPT-4, it seems unnecessary to invest significantly more to train a larger parameter language model. Instead, improving the performance, usability, and expandability of GPT-4 is OpenAI’s current focus.</p><p>For developers, enterprises, and end-consumers, the incorporation of more powerful AI that can be applied across a wide range of scenarios has become a key point in the next generation of digital transformation. The GPT created by OpenAI is like the brain in the future world of technology, and we believe that the upcoming creations and progress will <strong>make artificial intelligence better at using tools, and capable of ‘seeing,’ ‘hearing,’ and ‘speaking’ and ‘drawing’ fluently.</strong></p><p>The next article will introduce several other major updates released at this DevDay:</p><ol><li>GPT-4 Turbo with vision, allowing GPT-4 Turbo not just to converse in text but also to ‘see.’</li><li>DALL•E 3, a brand-new intelligent drawing model that draws for you based on prompts.</li><li>Text-to-speech (TTS), enabling GPT to speak in an extremely realistic human-like manner, with a variety of voices to choose from.</li><li>GPT-4 now also allows developers to fine-tune (Fine Tuning) the model. Custom Models, where OpenAI allows organizations to apply for training customized models, especially organizations with data volumes in the billions of tokens, OpenAI will train a completely independent model for the organization, but at a considerable cost.</li><li>Details on the GPT-4 pricing adjustments and higher access limits.</li><li>Whisper API updates</li></ol><p>See you in next article!</p><p>If you’re interested in Generative AI/ OpenAI API Integration/ GPT-4, please contact GenAI experts at <a href="https://www.appar.com.tw/">Appar</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=066f7cf4b591" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[深入介紹 OpenAI DevDay：除了 GPT-4 Turbo 還發佈了什麼？]]></title>
            <link>https://medium.com/@SeanChenU/%E6%B7%B1%E5%85%A5%E4%BB%8B%E7%B4%B9-openai-devday-%E9%99%A4%E4%BA%86-gpt-4-turbo-%E9%82%84%E7%99%BC%E4%BD%88%E4%BA%86%E4%BB%80%E9%BA%BC-da2fdab7b4e0?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/da2fdab7b4e0</guid>
            <category><![CDATA[devday]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[gpt-4-turbo]]></category>
            <category><![CDATA[生成式ai]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Sat, 11 Nov 2023 04:42:19 GMT</pubDate>
            <atom:updated>2023-11-11T04:54:34.882Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ObT9N-R-H2lelkWrQXCF-g.png" /><figcaption>本圖片使用最新的 OpenAI 最新圖像生成模型 DALLE•3 生成</figcaption></figure><blockquote>本文轉載自<a href="https://appar.com.tw/zh-hant/blog/%E6%B7%B1%E5%85%A5%E4%BB%8B%E7%B4%B9-openai-devday%E9%99%A4%E4%BA%86-gpt-4-turbo-%E9%82%84%E7%99%BC%E4%BD%88%E4%BA%86%E4%BB%80%E9%BA%BC/">約沛科技部落格</a></blockquote><p>於 2023/11/06 舉辦 OpenAI DevDay 的發佈會， OpenAI 執行長 Sam Altman又再次超越 OpenAI， 讓 AI 開發者又有了全新的可能性，透過本文，讓我們一同暸解這次的 GPT-4 Turbo 對於軟體開發者究竟有著什麼魅力。</p><p>OpenAI 於 2023/11/06 舉辦 OpenAI DevDay 發佈會，當其他大型科技公司還在苦苦追趕 GPT-4 性能的同時， OpenAI 執行長 Sam Altman又再次超越 OpenAI， 讓 AI 開發者又有了全新的可能性，充分展現了OpenAI 在人工智慧遙遙領先的地位。</p><h3>開掛的 GPT-4 Turbo：更快、更大的文本量，還更便宜</h3><p>前後文（Context）指的是「輸入給大語言模型提示詞和來回對話」的總文本量，過去的總文本量最大支援到 32,000 個 Token （且僅供部分開發者使用），而 GPT-4 Turbo 允許高達 128,000 個 Token 的總文本量，相當於可將一本 300 頁的書一次輸入給 GPT-4 Turbo，讓模型進行生成。而在速度上，過去 GPT-4 最令人詬病的缺點就是速度慢，在等待生成的過程中常常耗費大量時間，所以企業仍較常使用GPT-3.5來解決實際應用上的大部分問題。因此 GPT-4 Turbo 也解決了該問題，讓生成速度接近 GPT-3.5 ，也豐富了未來整合 GPT-4 Turbo 的情境。而在費用上，相較於前一個版本的 GPT-4，提示詞的計費便宜了兩倍（3x cheaper），而輸出的文本計費也便宜了一倍（2x cheaper）。</p><h3>對開發者更友善的函式呼叫（Function calling）功能</h3><h4>何謂函式呼叫（Function calling）？</h4><p>OpenAI 在今年稍早發佈了「函式呼叫」的功能，該功能能讓開發者在使用 GPT 時，能呼叫到客製化的程式碼函式。換句話說，就是能讓智能的 AI 串接到各式各樣的 API，大幅增加 OpenAI 能使用的場域。而該模型強大的性能在於，只要讓開發者提供程式的多個指令介面，GPT 即可自行決定要呼叫哪一個指令，還能使用適合的參數執行 。</p><p>舉例：智慧感應燈泡的開發者提供兩個指令：「設定顏色」和「設定感應的時段」設定顏色指令的參數有三種：白光、自然光和小夜燈。當對 GPT 輸入提示詞：「請幫我設定適合的夜晚的燈泡」GPT 就會自動決定使用「設定顏色」這個指令，並自動使用參數為「小夜燈」，該決策過程完全不需要人為參與。過去需要用 NLP 技術撰寫客製化邏輯來達到該功能，如今只使用呼叫 GPT 程式即可達成。</p><h4><strong>這次修改了什麼？</strong></h4><p>這次的更新，讓 GPT 能更精準的判斷應該使用哪個指令和參數，同時改進 GPT 只能一次呼叫一個指令。以往當情境較為複雜，開發者需要另外撰寫程式讓函式進行多次呼叫；這次的更新讓 GPT 能一次執行多個指令，並讓每次指令得到的結果能互相傳遞。例如：使用提示詞「我習慣半夜起床補充水份，請幫我設定適合的燈泡模式」這時候 GPT 就可決定呼叫「設定顏色」和「設定感應的時段」兩個指令，並決定「感應時段」參數為「時間 01:00 至 06:30」，同時使用「設定顏色」且參數為「小夜燈」。</p><p>另外，語言模型以往的回覆皆以「非特定格式的文本為回覆內容」，如果希望回覆特定格式，則需要在提示詞中要求「請以xml 格式」回覆；然而，開發者常常遇到的問題為：回覆格式不盡然是 xml，時常會參雜部分的純文本，導致在格式轉換上發生錯誤。而這次 GPT-4 Turbo 允許開發設定參數 response_format，可設定為 xml 或 json 等常見的 API 回傳格式，讓程式的穩定度更高。</p><p>最後，OpenAI 也允許使用者設定 Seed 參數，該參數決定 GPT 回傳內容的隨機性。透過該參數的設定，可以確保開發者讓語言模型的回傳保持一致性，讓開發者在撰寫測試案例時能更安心（避免語言模型突然產出不一樣的答案），提高程式的可測試性和品質。</p><p>除了以上發佈的兩點內容，以應用場景的擴展而言，助理 API 的發佈才是 DevDay 的重頭戲 。</p><h3>助理 API（Assistants API)</h3><p>過去如想利用大語言模型來開發生成式 AI 應用，需要使用 LangChain 等第三方套件，賦予大語言模型更高階的能力，例如：多語言模型並用、客製化資料的能力、記憶力和代理人（Agent，讓 AI 能執行連續任務、連續決策的能力），以完成更複雜的 AI 場景應用。</p><p>而 DevDay 上發佈的助理 API，將上述提及的多項能力整合到官方的 API 中，省去開發者在整合第三方套件上遇到的種種麻煩。這也是官方首次跳出單純優化大語言模型的效能，轉而開始探索「代理人」的應用。官方文件指出「一個助理是一個目標導向的 AI，這個 AI 允許使用特定的指令、使用外部的資料或使用不同語言模型和工具來執行任務」。</p><p>新的助理 API 也內建數個工具，除了上述的「函式呼叫」，也提供了「程式碼編譯器」和「資料檢索」。</p><h3>程式碼編譯器（Code Interpreter)</h3><p>GPT-4 的「程式碼編譯器」允許自己撰寫的程式碼能夠在一個沙盒環境中執行 （目前僅支援 Python），以往工程師取得 GPT-4 協助撰寫的程式碼後，需要複製貼上在自己的開發環境中測試，而 OpenAI 提供的沙盒環境，就足以讓 GPT-4 自我檢視程式碼是否正確，並且能針對執行後的結果，逐步自我修改程式碼，直到達到目標為止。</p><p>然而，程式碼編譯器的作用遠大於「讓 GPT-4 檢視自己撰寫程式的正確性」其更大的意義在於：「讓大語言模型擁有自己的電腦」電腦則是能執行大部分的任務。現在大語言模型都能以指令程式的方式去互動，雖然執行在受限的沙盒環境讓程式編譯器只能使用特定的第三方套件，但也足以執行「大部分 Python 程式語言善於處理的任務」例如：數據處理和API 呼叫，並能讀取使用者提供的較大的程式碼檔案等。沙盒環境以安全性而言，能避免讓大語言模型的強大能力被濫用，也因此在安全性上有一定的保障。</p><h3>資料檢索（Retrieval)</h3><p>「資料檢索」讓使用者可以上傳自己的資料（例如：特定產業領域資料、產品資訊或是內部文件）並使大語言模型可針對這些資料作進行回答，應用在自己的產業或領域，此項功能從 GPT-3 問世後，一直是百家爭鳴的重點。在 DevDay 上發佈的資料檢索，是官方首次對此功能提供原生的解決方案，例如：要讓企業建立內部知識的機器人 ，像是 AI 專案經理、AI 系統分析師；於醫療、金融等領域的客服機器人，在過去都需要使用複雜的語言處理技術才能實踐，如今有了 GPT-4 強大的語言模型，且在 OpenAI 的官方提供的資料檢索功能下，讓開發者能專注在商業邏輯、資料正確性和細節的調校。</p><p>此外，過去使用第三方套件需要的<a href="https://appar.com.tw/zh-hant/blog/%E5%90%91%E9%87%8F%E8%B3%87%E6%96%99%E5%BA%AB%E6%98%AF%E4%BB%80%E9%BA%BC/">向量資料庫</a>[1]、資料分段處理或特定搜尋演算法，在 OpenAI 官方的支援下，均無須額外費工處理以上的開發程序及其衍伸的費用。OpenAI 也特別強調助理 API 使用的對話和檔案，都不會被用來訓練 OpenAI 下一代的模型。</p><h4>結語</h4><p>整體而言，OpenAI 除了不斷優化模型的效率，亦持續地擴展大語言模型的應用。Sam Altman 曾說 GPT-5 短時間內不會問世，以目前 GPT-4 的精準度，額外花費大量成本訓練更大參數的語言模型看起來必要性似乎不高，相對地提高 GPT-4 的效能、易用性和可擴展性，才是目前 OpenAI 當下專注的重點；而對開發者、企業和終端消費者而言，導入更多強大並且能在多數場景應用的AI，已成為下一世代數位轉型的重點。OpenAI 所創造出的 GPT，就如同未來科技世界中的大腦，而我們相信，接下來的創造與進步，會使得人工智慧更擅長於使用工具、且能「看」、 能「聽」和流暢地「說」和「畫」。</p><p><strong>下一篇將會介紹本次 DevDay 發佈的幾項其他重大更新：</strong></p><ol><li>GPT-4 Turbo with vision 讓 GPT-4 Turbo 不只能文字對話，讓 AI 能「看」</li><li>DALL·E 3 全新的智慧繪圖模型，下提示詞就幫你「畫」出來</li><li>Text-to-speech (TTS) ，讓 GPT 能用極度擬真人類的方式，開口說話，並有多種人聲可選擇</li><li>GPT-4 現在也允許讓開發者微調（Fine Tuning）模型</li><li>Custom Models，OpenAI 允許組織能申請代訓練客製化模型，尤其是資料量為數十億個 Token 以上的組織，OpenAI 將替組織訓練完全獨立的模型，但相對地費用十分高昂</li><li>GPT-4 費用調降細節及更高的存取上限</li><li>Whisper API v3 即將發佈，能將語音轉文字的高精準度模型</li></ol><p>感謝您的閱讀，我們下一章節見。</p><p>[1] 向量式資料：參考文章<a href="https://appar.com.tw/zh-hant/blog/%E5%90%91%E9%87%8F%E8%B3%87%E6%96%99%E5%BA%AB%E6%98%AF%E4%BB%80%E9%BA%BC/">向量式資料是什麼？</a></p><p>其他參考：</p><ol><li>ChatGPT 改變我們未來生活的 AI 人工智慧：<a href="https://appar.com.tw/zh-hant/blog/chatgpt%E6%94%B9%E8%AE%8A%E6%88%91%E5%80%91%E6%9C%AA%E4%BE%86%E7%94%9F%E6%B4%BB%E7%9A%84ai%E4%BA%BA%E5%B7%A5%E6%99%BA%E6%85%A7/">連結</a></li><li>AI 生態系產品，實現過去認為的不可能：<a href="https://appar.com.tw/zh-hant/blog/ai%E7%94%9F%E6%85%8B%E7%B3%BB%E7%94%A2%E5%93%81%E5%AF%A6%E7%8F%BE%E9%81%8E%E5%8E%BB%E8%AA%8D%E7%82%BA%E7%9A%84%E4%B8%8D%E5%8F%AF%E8%83%BD/">連結</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da2fdab7b4e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How OpenAI’s Function Calling is Reshaping the Landscape of AI]]></title>
            <link>https://medium.com/@SeanChenU/how-openais-function-calling-is-reshaping-the-landscape-of-ai-1e782419c2e5?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e782419c2e5</guid>
            <category><![CDATA[gpt-4]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[gpt35]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Wed, 14 Jun 2023 07:02:27 GMT</pubDate>
            <atom:updated>2023-06-14T07:02:27.500Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*au4BcDuMNNMW-Xx_kbOeNg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@huchenme?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Hu Chen</a> on <a href="https://unsplash.com/photos/5O6c_pLziXs?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Why is function calling such a big deal? Imagine being able to communicate with a machine not just in rudimentary code but in rich, human-like language, and have it understand and execute complex tasks. This is precisely what OpenAI’s newly released feature, function calling, is doing and it’s changing the world as we know it.</p><h3>Making Code More Human</h3><p>Traditionally, communicating with machines has been a rigid, code-intensive process. Now, OpenAI’s function calling enables developers to describe programming functions to their AI models like GPT-3.5-turbo and GPT-4 in a way that mimics human conversation. It’s making the gap between man and machine narrower than ever before.</p><h3>Powering Up Your Chatbots</h3><p>Consider this: your chatbot could now answer queries by calling external tools, convert natural language into database queries, and extract structured data from text. It’s like giving your chatbot an upgrade in comprehension and problem-solving, making it more efficient and user-friendly.</p><h3>Increased Efficiency and Reduced Costs</h3><p>While introducing these revolutionary features, OpenAI isn’t hiking up prices. On the contrary, they’re making AI more accessible by reducing the pricing for GPT-3.5-turbo by 25%. It’s now possible to have high-end AI capabilities without breaking the bank.</p><h3>A New Era for AI</h3><p>The introduction of function calling in AI models is more than just a technological advancement. It represents a shift in how we view and interact with machines. It’s the beginning of an era where machines understand us better, making our lives easier and more productive.</p><h3>The Road Ahead</h3><p>While OpenAI has made significant strides with the release of GPT-4 and new features like function calling, they’re not stopping there. The company has signaled that incremental updates to existing models are part of its roadmap, indicating there’s much more to look forward to in the AI space.</p><p>With the rapid advancement of AI, it’s exciting to ponder what the future holds. How do you see these advancements changing your work or life? I’d love to hear your thoughts and experiences with AI and function calling. Please leave your comments below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e782419c2e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenAI’s Function Calling: Revolutionizing the Digital World, Again]]></title>
            <link>https://medium.com/@SeanChenU/openais-function-calling-revolutionizing-the-digital-world-again-31b27480c1c6?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/31b27480c1c6</guid>
            <category><![CDATA[gpt-4]]></category>
            <category><![CDATA[gpt35]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[calling-function]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Wed, 14 Jun 2023 06:56:17 GMT</pubDate>
            <atom:updated>2023-06-14T06:56:17.857Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vE1P4gw5cdQkQt8KvrxboA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@dkoi?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">D koi</a> on <a href="https://unsplash.com/photos/Fc1GBkmV-Dw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In the rapidly evolving world of artificial intelligence (AI), OpenAI has continually pushed the boundaries of what’s possible. Now, with its groundbreaking function calling feature, the AI giant is set to transform the digital landscape once more.</p><p>In recent years, OpenAI has made significant strides with its text-generating AI models, GPT-3.5-turbo and GPT-4. These models have proven their capabilities in various applications, from creating human-like text to aiding in complex problem-solving. Today, a new chapter begins with the introduction of function calling, a feature that gives these AI models the ability to generate code that executes specific programming functions.</p><blockquote>Function calling is more than just a technological advancement; it’s a paradigm shift in how AI can interact with and manipulate data.</blockquote><p>Developers can now describe programming functions to GPT-3.5-turbo and GPT-4, and the models can create the code to carry out those functions. This capability has far-reaching implications for fields ranging from software development to customer service.</p><p>In software development, for example, function calling can streamline and automate many aspects of coding. Developers can simply describe the desired functionality, and the AI models can generate the necessary code. This ability not only saves time but also reduces the potential for human error, improving the overall quality and reliability of software applications.</p><p>Furthermore, function calling can revolutionize customer service by enabling the creation of advanced AI-powered chatbots. These chatbots can answer customer queries by calling external tools, convert natural language into database queries, and extract structured data from text. Such advancements can significantly improve the customer experience by providing quicker, more accurate responses.</p><p>While function calling is still a relatively new feature, early adopters are already seeing its transformative potential. Businesses are leveraging this technology to automate complex tasks, increase productivity, and deliver more personalized customer experiences. As more organizations adopt function calling, we can expect a surge in innovative AI applications that reshape industries.</p><p>OpenAI’s reduction in pricing for the original GPT-3.5-turbo and the text-embedding-ada-002 model has further increased the accessibility of these powerful tools. This move has democratized AI, allowing more developers to harness the power of function calling. The reduced pricing model equates to roughly 700 pages of text per dollar, making advanced AI capabilities affordable for a wider range of users.</p><blockquote>It’s clear that OpenAI’s function calling feature is not just a technological innovation, but a catalyst for change. By making AI more interactive and adaptable, it’s equipping businesses with the tools they need to stay competitive in the digital age.</blockquote><p>However, the true power of function calling lies not in the technology itself, but in how it’s used. As developers continue to explore this feature’s potential, we can expect to see a wave of innovative applications that push the boundaries of what AI can do. Just as GPT-3.5-turbo and GPT-4 have transformed the AI landscape, function calling is set to usher in a new era of AI-powered solutions.</p><p>Function calling is a testament to OpenAI’s commitment to driving progress in AI. By continually introducing features like function calling, OpenAI is not just advancing its own technology; it’s pushing the entire field of AI forward.</p><p>OpenAI’s function calling feature is set to change the world once again. As it becomes more widely adopted, we will witness a revolution in how businesses use AI, leading to more efficient operations, improved customer experiences, and groundbreaking innovations. The world is on the brink of another digital transformation, and once again, OpenAI is leading the charge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31b27480c1c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to hide Chrome’s Extension icon? (2020)]]></title>
            <link>https://medium.com/@SeanChenU/how-to-hide-chromes-extension-icon-2020-d68148eb54c2?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d68148eb54c2</guid>
            <category><![CDATA[chrome-extension]]></category>
            <category><![CDATA[chrome]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Fri, 26 Jun 2020 05:28:19 GMT</pubDate>
            <atom:updated>2020-06-26T05:28:19.988Z</atom:updated>
            <content:encoded><![CDATA[<p>Chrome’s latest update will change the Extension UI and add a new Extension Management button. It’s stick to bar and seems unremovable. But <strong>don’t be anxious yet because here’s how you can hide it in 30 sec.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/197/1*SaxmFRQxrpzycW1n8LKzQA.png" /></figure><p><strong>Step 1</strong>: Enter the following address to your browser URL field</p><blockquote>chrome://flags/#extensions-toolbar-menu</blockquote><p>It will lead you to this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*gGaK19awd25fvFCPTgAbpw.png" /></figure><p><strong>Step 2</strong>: Choose “Disabled”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*3evG2y1gEZK5X9gfJvNT_A.png" /></figure><p><strong>Step 3</strong>: Click “Relaunch”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*20ZJoUn1aqSxh9XUsr72Rg.png" /></figure><p><strong>Step 4</strong>: Move on to whatever you were able to do</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d68148eb54c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Effective Communication Tool For Working From Home]]></title>
            <link>https://medium.com/@SeanChenU/an-effective-communication-tool-for-working-from-home-53e4038fc7c5?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/53e4038fc7c5</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[work-from-home]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 07:38:12 GMT</pubDate>
            <atom:updated>2020-04-07T05:10:41.882Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing QAReplay</h3><h3>The Age of Working from Home</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wBNAXJQe78PMx06-1WUAsw.jpeg" /><figcaption>Photo by [Agnieszka Boeske] on [Unsplash]</figcaption></figure><p>In the age of COVID-19, organizations and enterprises worldwide are forced to work remotely. People have to follow the social distance policy to prevent the virus from spreading. Those who are in quarantine are required to maintain working at home.</p><p>While remote working has already a regular working mode for many modern tech companies, a great number of businesses still having a hard time collaborate without working in the same location. People might feel lonely, distracted, but mostly the fear of the low quality of communication.</p><p>When communicating face-to-face, a lot of verbal, facial expression and body language are involved to finish a task to impart certain information and ideas. To extend the capacity of transmission, we can have a device like a whiteboard or digital screen to improve your information expressing process. But when having a team working together across the countries or even continents, the members will be required to adopt their new workflow with multiple digital products. Utilizing these products to finish the communication tasks and business processes is becoming a new norm.</p><p>As our teams working with clients around the world as well as the team members for the past couple of years, we encounter low efficiency when communicating. The low quality of communication delays the schedule and might end up with buggy digital products. To be more specific, we found them painful when we want to explain something to people with your screen or trying to reproduce the steps of bug happening. Then we decided to gather our resources to build a product to scratch our own itch.</p><h3>Introducing QAReplay — instant replay tool for your screen</h3><p>We built a tool called <a href="https://qareplay.com/">QAReplay</a>. The simple yet powerful tool to record your screen. But not just to record your screen and save everything (which going to eat up your expensive SSD space), or record only when you command the tool to do so. <a href="https://qareplay.com/">QAReplay</a> is recording NONSTOP. But what about disk space and memory? Don’t worry, it will only preserve the last 15 secs when you ask it to do so.</p><p>What does that imply? <strong>It means you can capture every step while you’re testing your product before encountering a bug.</strong> Also, you can save your time from trimming the video every single time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*a0DjUXKfLbwFpjhHZAFRKQ.gif" /><figcaption>Just click “Save and Generate Link”</figcaption></figure><p>When you want to share your screen with others to explain something on your screen, you don’t have to go through the mundane process to setup screen sharing application like Zoom or TeamViewer. <strong>Instead, keep </strong><a href="https://qareplay.com/"><strong>QAReplay</strong></a><strong> on.</strong> After you finish your actions on screen, just click “Save …” in the <a href="https://qareplay.com/">QAReplay</a> menu, your activity on screen for the last 15 seconds will automatically be saved. Then it will instantly become a step-by-step tutorial that you want to show your co-workers or clients.</p><p>Another scenario is the “steps to reproduce video”. When testing the product under development, we will always encounter bugs or even unexpected behaviors. To write a comprehensive defect report, each ticket requires at least the location of bug, AS-IS, and TO-BE. With the video captured by <a href="https://qareplay.com/">QAReplay</a>, <strong>it will automatically include the information about the location of bug and AS-IS</strong>. The developer team can be easily found where the bug is and complete steps of you producing it.</p><h3>Share via Link</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*nitBpGigsziTN0gf9CbdGQ.gif" /><figcaption>Enable the “Share via Link”</figcaption></figure><p>It can be generated into a private link directly as well, so you can easily share it with your co-workers. Either with message app or Issue Tracking System like Jira, Trello or Asana. The co-worker like developers or designers can later access the link at any time and anywhere, and see the screen recording you preserved. It can help you reduce the communication process. Furthermore, to help you focus on things that truly matter. The tool <a href="https://qareplay.com/">QAReplay</a> is aiming to lower the barrier for teams working in different places and to make communication effortless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*nKjQ5npgJswcVNGQ6aOm-Q.gif" /><figcaption>Will notify you the link soon</figcaption></figure><p>To enhance the team efficiency of working from home, <a href="https://qareplay.com/">QAReplay</a> will help testers, product managers, developers or any member of the team keep up the high quality of communication while working distance away from others. As a result of delivering better products and boost business worldwide.</p><p>More features are developing on its way. Here is the brief product roadmap and we are looking for feedbacks from users worldwide, feel free to comment below.</p><h3>QAReplay Product Roadmap [Keep Updating]</h3><ol><li>Video annotation, an intuitive interface to let users can add annotation on the video</li><li>Add subtitle and sound recording</li><li>Clips organizer, a better way to organize clips you saved</li><li>Sharing with different permission settings</li></ol><p>Like QAReplay on ProductHunt: <a href="https://www.producthunt.com/posts/qareplay">https://www.producthunt.com/posts/qareplay</a></p><p>Download QAReplay here: <a href="https://qareplay.com/">https://qareplay.com</a></p><blockquote>Stay home and stay healthy.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53e4038fc7c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The reasons you should build/ outsource software development team in Taiwan]]></title>
            <link>https://medium.com/@SeanChenU/about-building-outsourcing-software-team-in-taiwan-f4f47957110d?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4f47957110d</guid>
            <category><![CDATA[offshore-development]]></category>
            <category><![CDATA[outsourcing]]></category>
            <category><![CDATA[taiwan]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Wed, 29 Aug 2018 09:20:09 GMT</pubDate>
            <atom:updated>2022-06-04T06:01:33.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eo897yjkqbhELj_4F9tCFQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/9NUKeiyNJmI?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">paweldotio</a> on <a href="https://unsplash.com/search/photos/taiwan?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Why outsource or build software team overseas? Hiring teams in offshore countries can come with several benefits that help you muscle up your gang against your competitors and get your company to the next level.</p><h4>Lower labor cost with as high quality</h4><p>The software developer salaries in Western countries are the highest in the world. Outsourcing works developers in the others of the world can greatly save cost and also increasing productivity.</p><h4>Access to your potential market by its heart</h4><p>With working with team outside of the countries, it will help companies develop products better fit the needs of customers overseas.</p><h4>Timezone advantage</h4><p>With the support of the offshore team, you can work on product delivering literally around the clock. It’s will double the productivity of existing development.</p><h3>Why build software team in Taiwan?</h3><p>For short, an entrepreneurial island would describe Taiwan best. Taiwan is the center of East Asia geographically, with frequent trade and strong relationship with Mainland China, Korea, Japan and South East Asia countries. It’s ranked #<a href="https://www.forbes.com/places/taiwan/">16 Best Countries for Business by Forbes</a>. Some said it’s the democratic version of China. Actually <a href="http://time.com/3930616/taiwan-cover-tsai-ing-wen/">TIME magazine said that</a>. Although without natural resources, the love of innovation and technology bring the island become one of the top tech countries in the world. Whether the advanced chip inside iPhone, laptops or components in PC, Taiwanese innovative mind are very likely behind the design and manufacturing of them. Couple of Forbes 500 companies are born in Taiwan, like <a href="https://www.bloomberg.com/gadfly/articles/2018-04-02/meet-hon-hai-precision-asia-s-big-hedge-fund-and-iphone-maker">Hon Hai Precisio</a>n, <a href="https://www.economist.com/business/2018/04/05/tsmc-is-about-to-become-the-worlds-most-advanced-chipmaker">Taiwan Semiconductor</a> (World’s largest dedicated independent semiconductor foundry), Pegatron and Quanta Computer.</p><p>Taiwanese culture has been leading the Greater China region for over decades. Being a full democracy country, it embraces the transparency of law and governing. The influence of Taiwanese business activity has been long established around the world and especially in the area. It’s been a key and great support of accessing the Chinese market, not only in Asia but reaching around Chinese speakers around the world. Its people are also known for hospitality, hard-working and work ethics oriented.</p><p>Although Indian or South East Asia have the lowest cost of development labor. Taiwan is known for better quality and best high-end engineering in the world. With the Taiwanese talents, building product of solid and happiness is not longer massive capital burning and become flexibly agile.</p><p>Sourced from <a href="https://appar.com.tw/en/blog/">Appar Blog</a></p><p>I‘d love to hear from your experience about software developing, outsourcing or random things about Taiwan. Please leave comments below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4f47957110d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Send mail using Node.js with nodemailer in 2 mins]]></title>
            <link>https://medium.com/@SeanChenU/send-mail-using-node-js-with-nodemailer-in-2-mins-c3f3e23f4a1?source=rss-70c2966821d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3f3e23f4a1</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[nodemailer]]></category>
            <category><![CDATA[appar]]></category>
            <category><![CDATA[google-console]]></category>
            <dc:creator><![CDATA[Sean Chen]]></dc:creator>
            <pubDate>Mon, 23 Jan 2017 07:13:59 GMT</pubDate>
            <atom:updated>2018-08-29T09:33:08.589Z</atom:updated>
            <content:encoded><![CDATA[<p>Step-to-step tutorial</p><p>Basics:</p><ul><li>nodejs(5.6.0), nodemailer(0.7.1)</li><li>nodemailer is a nodejs package for sending mail.</li><li>requires basic knowledge of Google Console, nodejs</li></ul><h3>Using the example on nodemailer official page might not going reveal the “IT JUST WORKS” moment. So here is the step-to-step tutorial that actually works.</h3><blockquote>Step 1: Add this to your <strong>package.json</strong></blockquote><pre>&quot;nodemailer&quot;: &quot;^0.7.1&quot;,</pre><blockquote>Step 2: Create a client in Google Console</blockquote><p>Google Console → API Manager → Credentials → Create credentials → OAuth client ID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*26yEMMjpX7GBXfA2_7vB6Q.png" /></figure><p>Then, Choose “Web Application”, enter “https://developers.google.com/oauthplayground” in “Authorized redirect URLs”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*S38AnAtBErW7h7DA_8WUWg.png" /></figure><p>We are going to use OAuthPlayground to retrieve related tokens and use it in our code. The <strong>clientId</strong> and <strong>clientSecret</strong> will be use later.</p><blockquote>Step 3: Use Google OAuth 2.0 playground to get refresh_token</blockquote><p>Here is the entry: <a href="https://developers.google.com/oauthplayground/">https://developers.google.com/oauthplayground/</a></p><p>First go the the top-right corner where you can find a “OAuth 2.0 Configuration” button.</p><p>And change your configs like mine. Enter the <strong>clientId</strong> and <strong>clientSecret</strong> below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*B8-8QKyJwJgvg_26OTZj8g.png" /></figure><p>On the left of the whole page: Type “<a href="https://mail.google.com/"><strong>https://mail.google.com/</strong></a>” into the scope input. And press “<strong>Authorize APIs</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*5Q99TxxvkP2f8YQniIHFog.png" /></figure><p>And then press the “<strong>Exchange authorization code for tokens</strong>” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*CkBrEuWR8HDjx0PPlCkOGg.png" /></figure><p>And that’s it! 🙌🏼 You’ve got “Refresh token”!</p><p>Step 4: Use clientId, clientSecret and refresh token in the code. Here’s the snippet.</p><pre>// Create a Transport instance using nodemailer<br>var nodemailer = require(&#39;nodemailer&#39;);</pre><pre>sails.log.debug(&#39;try to send mail&#39;);</pre><pre>var smtpTransport = nodemailer.createTransport(&quot;SMTP&quot;, {<br>    service: &quot;Gmail&quot;,<br>    auth: {<br>      XOAuth2: {<br>        user: &quot;<a href="/service/mailto:velp.service@gmail.com">xxx@gmail.com</a>&quot;, // Your gmail address.<br>        clientId: &quot;YOUR_CLIENT_ID&quot;,<br>        clientSecret: &quot;YOUR_CLIENT_SECRET&quot;,<br>        refreshToken: &quot;REFRESH_TOKEN_YOU_JUST_FOUND&quot;<br>      }<br>    }<br>  });</pre><pre>// Setup mail configuration<br>var mailOptions = {<br>    from: &#39;xxx@gmail.com&#39;, // sender address<br>    to: RECEIVER_EMAIL&quot;, // list of receivers<br>    subject: &#39;A_SUBJECT&#39;, // Subject line<br>    // text: &#39;&#39;, // plaintext body<br>    html: htmlBody // html body<br>  };</pre><pre>// send mail<br>  smtpTransport.sendMail(mailOptions, function(error, info) {<br>    if (error) {<br>      sails.log.debug(error);<br>      return res.notOk({<br>        status: &#39;error&#39;,<br>        msg: &#39;Email sending failed&#39;<br>      })<br>    } else {<br>      console.log(&#39;Message %s sent: %s&#39;, info.messageId, info.response);<br>      return res.ok({<br>        status: &#39;ok&#39;,<br>        msg: &#39;Email sent&#39;<br>      })<br>    }<br>    smtpTransport.close();<br>  });</pre><blockquote>Optional Step: Go to Google account settings to allow “less secure apps”</blockquote><p><a href="https://www.google.com/settings/u/2/security/lesssecureapps">https://www.google.com/settings/u/2/security/lesssecureapps</a></p><p>That’s it! email me or leave a comment below if you have any questions, Thanks for reading. <a href="/service/mailto://sean@appar.com.tw">sean@appar.com.tw</a></p><blockquote>Follow me on Twitter: <a href="https://twitter.com/SeanChenU">SeanChenU</a></blockquote><blockquote>Looking for developers? checkout this agency <a href="http://appar.com.tw/">https://appar.com.tw</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3f3e23f4a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>