Title: Page 35 – Alex Kirk

---

 * June 11, 2023
 * [@DazeEnd](https://mastodon.cloud/@DazeEnd) Try my [https://wordpress.org/plugins/enable-mastodon-apps/](https://wordpress.org/plugins/enable-mastodon-apps/)
   plugin. With it you can actually use Mastodon apps to post on your WordPress 
   blog
 * [Web](https://alex.kirk.at/category/web/)
 * 
   ## 󠀁[CLI ChatGPT Client in PHP](https://alex.kirk.at/2023/05/24/cli-chatgpt-client-in-php/)󠁿
   
 * May 24, 2023
 * For my personal use, I created [a CLI ChatGPT client](https://github.com/akirk/cli-chatgpt)
   a few months ago. It has been very useful for me to have it available in the 
   CLI quickly whenever I needed it (caveat, [you need an API key](https://platform.openai.com/account/api-keys)!).
 * Unfortunately, for larger responses it can feel very slow, whereas the [web version](https://chat.openai.com/)
   feels quite fast. But this is perceived speed because it shows you each word 
   as it arrives and not just the whole response when finished (after all it is 
   a completion AI that generates the response word by word).
 * So now, I have added streaming support to it. It now feels almost too fast :)
   The CLI has a few nice things such as readline support (i.e. you can go back 
   to old queries with the up key) and it keeps all of your conversation in a text
   file. All of this [in only 100 lines of PHP](https://github.com/akirk/cli-chatgpt/blob/main/chat.php).
 * ![](https://alex.kirk.at/wp-content/uploads/sites/2/2023/05/chatgpt-block-variation-
   response-1.gif)
 * [AI](https://alex.kirk.at/category/ai/), [Explorations](https://alex.kirk.at/category/explorations/),
   [Web](https://alex.kirk.at/category/web/)
 * [ChatGPT](https://alex.kirk.at/tag/chatgpt/), [LLMs](https://alex.kirk.at/tag/llms/)

 [Previous Page](https://alex.kirk.at/page/34/?output_format=md&term_id=44051) [Next Page](https://alex.kirk.at/page/36/?output_format=md&term_id=44051)