{"id":862,"date":"2022-12-26T06:46:52","date_gmt":"2022-12-26T06:46:52","guid":{"rendered":"https:\/\/setkyar.com\/?p=862"},"modified":"2023-01-02T14:22:41","modified_gmt":"2023-01-02T14:22:41","slug":"exploring-openai","status":"publish","type":"post","link":"https:\/\/setkyar.com\/exploring-openai\/","title":{"rendered":"Exploring OpenAI"},"content":{"rendered":"\n<p>As many of us have probably seen, chatGPT has become very popular recently, with people sharing conversations on social media. I was also interested in chatGPT, so I tried it out and was impressed by its capabilities. Since then, chatGPT has become like a technical friend to me. Whenever I have questions, especially about technical topics, I turn to chatGPT instead of Google. It&#8217;s been very helpful in my day-to-day work, especially when I need to remember Linux commands or learn about new technologies.<\/p>\n\n\n\n<p>I became interested in exploring OpenAI further and started asking chatGPT a lot of questions. I discovered that there is an API available and had the idea to create a Python program that could call the API directly, rather than using the chatGPT UI. I asked chatGPT to create such a program and then modified it slightly. I set up the program with an alias called &#8220;ask&#8221; so that I could easily use it by typing &#8220;ask&#8221; followed by my question. It has been very useful and fun to use on a daily basis.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"481\" data-attachment-id=\"864\" data-permalink=\"https:\/\/setkyar.com\/exploring-openai\/image-9\/\" data-orig-file=\"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2022\/12\/image.png?fit=1114%2C595&amp;ssl=1\" data-orig-size=\"1114,595\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2022\/12\/image.png?fit=900%2C481&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2022\/12\/image.png?resize=900%2C481&#038;ssl=1\" alt=\"\" class=\"wp-image-864\" srcset=\"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2022\/12\/image.png?resize=1024%2C547&amp;ssl=1 1024w, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2022\/12\/image.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2022\/12\/image.png?resize=768%2C410&amp;ssl=1 768w, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2022\/12\/image.png?w=1114&amp;ssl=1 1114w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><figcaption class=\"wp-element-caption\">Asking Questions to OpenAI<\/figcaption><\/figure>\n\n\n\n<p>As I continued exploring, I wondered if I could create a chatGPT-like system that worked like Google Assistant, with voice commands and OpenAI responses through voice output. I asked chatGPT to create a simple web program that could take voice input, convert it to text, pass it to the API server, and then call the OpenAI API. When the API responded, the web frontend would convert the text to voice and read it out loud for me. While it was fun to create this system, it wasn&#8217;t very practical to use. However, I believe that if I could use other OpenAI APIs, such as whisper, it could be a great tool. I&#8217;m excited to see what other AI-based applications and services will be developed in the future to improve our productivity. You can find the code for the &#8220;ask&#8221; alias, the voice assistant, and other projects I&#8217;m working on in <a href=\"https:\/\/github.com\/setkyar\/explroing-openai\">my GitHub repository<\/a>.<\/p>\n\n\n\n<p>FYI &#8211; <strong>This blog article has been optimized by chatGPT.<\/strong><\/p>\n\n\n\n<p>Edited. I created a CLI base application. You can check it out on <a href=\"https:\/\/github.com\/setkyar\/ask\/releases\/tag\/v1.0.0\">my GitHub<\/a>. Easy to install as it&#8217;s binary.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As many of us have probably seen, chatGPT has become very popular recently, with people sharing conversations on social media. I was also interested in chatGPT, so I tried it out and was impressed by its capabilities. Since then, chatGPT has become like a technical friend to me. Whenever I have questions, especially about technical [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[47],"tags":[57,58],"class_list":["post-862","post","type-post","status-publish","format-standard","hentry","category-learning","tag-chatgpt","tag-openai"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":1525,"url":"https:\/\/setkyar.com\/browser-shortcuts\/","url_meta":{"origin":862,"position":0},"title":"Browser shortcuts","author":"universe","date":"February 14, 2025","format":false,"excerpt":"I was checking X the other day and saw the following post. https:\/\/twitter.com\/matiroy\/status\/1882120912067084453 The person is sharing how to use Grok. I found it very interesting especially with https:\/\/grok.com\/?q=%s usage. I try other LLM apps like ChatGPT https:\/\/chatgpt.com\/?q=life+is+good. It work! Then I start setting up more stuff in my browser\u2026","rel":"","context":"In &quot;Learning&quot;","block_context":{"text":"Learning","link":"https:\/\/setkyar.com\/category\/learning\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/02\/image.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/02\/image.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/02\/image.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":974,"url":"https:\/\/setkyar.com\/using-ifttt-to-automate-sms-notifications\/","url_meta":{"origin":862,"position":1},"title":"Using IFTTT to automate SMS notifications","author":"universe","date":"January 28, 2023","format":false,"excerpt":"IFTTT dashboard As someone who frequently travels and uses multiple phone numbers for various online services, I found myself constantly switching SIM cards and struggling to keep track of important SMS notifications, particularly OTPs for banking services. To solve this problem, I turned to IFTTT (If This Then That), an\u2026","rel":"","context":"In &quot;Random&quot;","block_context":{"text":"Random","link":"https:\/\/setkyar.com\/category\/random\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2023\/01\/image-4.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2023\/01\/image-4.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2023\/01\/image-4.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2023\/01\/image-4.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2023\/01\/image-4.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2023\/01\/image-4.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":1521,"url":"https:\/\/setkyar.com\/aireview\/","url_meta":{"origin":862,"position":2},"title":"AIReview","author":"universe","date":"February 13, 2025","format":false,"excerpt":"AIReview is a command-line tool that leverages LLM to provide code reviews for your Git changes. While searching for code review services, I found that most options were quite expensive\u2014around $20 per seat. That seemed costly, so I thought, why not build a basic CLI tool instead? And that\u2019s how\u2026","rel":"","context":"In &quot;Tech&quot;","block_context":{"text":"Tech","link":"https:\/\/setkyar.com\/category\/tech\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1532,"url":"https:\/\/setkyar.com\/trying-out-mcp-and-my-thoughts-on-it\/","url_meta":{"origin":862,"position":3},"title":"Trying out MCP and my thoughts on it","author":"universe","date":"March 2, 2025","format":false,"excerpt":"Last few days, I have been trying out Model Context Protocol. Testing out with Claude desktop. It's amazing and I personally love it. Model Context Protocol (MCP) is an open protocol designed to standardize how AI applications, particularly those using Large Language Models (LLMs), interact with external data sources and\u2026","rel":"","context":"In &quot;Learning&quot;","block_context":{"text":"Learning","link":"https:\/\/setkyar.com\/category\/learning\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/03\/image-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/03\/image-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/03\/image-3.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/03\/image-3.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1778,"url":"https:\/\/setkyar.com\/building-autonomous-ai-agent-loops-a-hands-off-approach-to-development\/","url_meta":{"origin":862,"position":4},"title":"Building Autonomous AI Agent Loops: A Hands-Off Approach to Development","author":"universe","date":"January 3, 2026","format":false,"excerpt":"When coding with AI, manually specifying what to do and how to do each task can become quite tedious. Recently, I've noticed more people experimenting with looping AI agents where they let the AI handle everything autonomously. I tried this approach myself the other day using Claude Code Max, but\u2026","rel":"","context":"In &quot;Tech&quot;","block_context":{"text":"Tech","link":"https:\/\/setkyar.com\/category\/tech\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2026\/01\/image-1-scaled.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2026\/01\/image-1-scaled.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2026\/01\/image-1-scaled.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2026\/01\/image-1-scaled.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2026\/01\/image-1-scaled.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2026\/01\/image-1-scaled.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":1596,"url":"https:\/\/setkyar.com\/coding-tools-mcp-server\/","url_meta":{"origin":862,"position":5},"title":"Coding Tools MCP Server","author":"universe","date":"March 8, 2025","format":false,"excerpt":"I created the Coding Tools MCP Server inspired by Filesystem MCP. When I was trying out MCP server with Claude, I feel like it was pretty neat. I played around with it and it reached the limit in a few prompts while scanning the folders and files. A few days\u2026","rel":"","context":"In &quot;Tech&quot;","block_context":{"text":"Tech","link":"https:\/\/setkyar.com\/category\/tech\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/03\/image-11.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/03\/image-11.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/03\/image-11.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/setkyar.com\/wp-content\/uploads\/2025\/03\/image-11.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/posts\/862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/comments?post=862"}],"version-history":[{"count":4,"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/posts\/862\/revisions"}],"predecessor-version":[{"id":882,"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/posts\/862\/revisions\/882"}],"wp:attachment":[{"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/media?parent=862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/categories?post=862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/setkyar.com\/wp-json\/wp\/v2\/tags?post=862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}