{"id":176,"date":"2023-06-23T17:37:00","date_gmt":"2023-06-23T15:37:00","guid":{"rendered":"https:\/\/extendsclass.com\/blog\/?p=176"},"modified":"2023-05-31T23:04:41","modified_gmt":"2023-05-31T21:04:41","slug":"loz-chatgpt-in-your-prompt","status":"publish","type":"post","link":"https:\/\/extendsclass.com\/blog\/loz-chatgpt-in-your-prompt","title":{"rendered":"Loz: ChatGPT in your prompt"},"content":{"rendered":"\n<p>Loz is a command-line interface tool that leverages the power of ChatGPT, enabling seamless integration of Unix pipes with other Unix tools.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_47_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"ez-toc-toggle-icon-1\"><label for=\"item-69fb0e5f8ac62\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input  type=\"checkbox\" id=\"item-69fb0e5f8ac62\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extendsclass.com\/blog\/loz-chatgpt-in-your-prompt\/#Getting_Started\" title=\"Getting Started\">Getting Started<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extendsclass.com\/blog\/loz-chatgpt-in-your-prompt\/#How_to_use_it\" title=\"How to use it ?\">How to use it ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extendsclass.com\/blog\/loz-chatgpt-in-your-prompt\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Getting_Started\"><\/span>Getting Started<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To begin, execute the following npm command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo npm install loz -g<\/code><\/pre>\n\n\n\n<p>Next, add OPENAI_API_KEY=YOUR_KEY in your .bashrc<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export OPENAI_API_KEY=YOUR_KEY<\/code><\/pre>\n\n\n\n<p>You can also clone the repository if you prefer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_use_it\"><\/span>How to use it ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Once Loz is running, you have the ability to start a conversation by interacting with it. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ loz\nLuv: a simple ChatGTP CLI tool\n  mode: default\n&gt; <\/code><\/pre>\n\n\n\n<p>By utilizing a Unix pipe, Loz has the capability to process input from various command-line tools.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ls | loz \"Count the number of files: \"\n\n26 files<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you find value in OpenAI&#8217;s GPT and frequently use a prompt, then Loz will be useful to you, and you&#8217;ll love it! If you don&#8217;t see the significance of GPT AI, then feel free to move on! Or perhaps just give it a try, you never know, it might change your mind!<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/joone\/loz\" title=\"\">Repository on Github<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Loz is a command-line interface tool that leverages the power of ChatGPT, enabling seamless integration of Unix pipes with other Unix tools.<\/p>\n","protected":false},"author":1,"featured_media":182,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":""},"categories":[4],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/176"}],"collection":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/comments?post=176"}],"version-history":[{"count":6,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/176\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/176\/revisions\/178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/media\/182"}],"wp:attachment":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/media?parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/categories?post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/tags?post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}