minimaxir/simpleaichat
View on GitHub ↗ ★ 3,490 Python
Python package for easily interfacing with chat apps, with robust features and minimal code complexity.
21 mentions on Hacker News by 11 people: 4 stories, 17 comments · first 2023-06-08 · latest 2025-05-05
20082026
-
I was developing an open-source library for interfacing with LLMs agnostically ( https://github.com/minimaxir/simpleaichat ) and although it still works, I haven't had the time to maintain it unfortunately. Nowadays for writing code to…
comment by minimaxir · 2025-05-05 · in As an experienced LLM user, I don't use generative LLMs often -
…plus a function calling trick which allows you to get the improved result in a single API call: https://github.com/minimaxir/simpleaichat/blob/main/examples...
comment by minimaxir · 2023-12-17 · in Promptbase: All things prompt engineering -
…of its power). Here's a fun demo example which compares system prompts and structured data results: https://github.com/minimaxir/simpleaichat/blob/main/examples...
comment by minimaxir · 2023-12-15 · in Prompt engineering -
…asked those questions were greeted by a software author who lashed out at them. See for yourself: https://github.com/minimaxir/simpleaichat/issues/91 https://github.com/minimaxir/simpleaichat/issues/92 One person who asked (rightfully,…
comment by dangus · 2023-11-15 · in Please Don't Ask If an Open Source Project Is Dead -
…both the issues mentioned, people have been respectful and showing empathy to author's situation https://github.com/minimaxir/simpleaichat/issues/91 https://github.com/minimaxir/simpleaichat/issues/92
comment by avinassh · 2023-11-15 · in Please Don't Ask If an Open Source Project Is Dead -
…structured data for better output control, lightly leveraging my Python package to reduce LoC: https://github.com/minimaxir/simpleaichat/blob/main/examples...
comment by minimaxir · 2023-09-08 · in We built an AI-powered Magic the Gathering card generator -
So what are the alternatives to LangChain that the HN crowd uses? I see two contenders: https://github.com/minimaxir/simpleaichat/tree/main/simpleai... https://github.com/griptape-ai/griptape There is also the llm command line utility that…
comment by zby · 2023-08-14 · in LangChain Agent Simulation – Multi-Player Dungeons and Dragons -
…"make it more efficient") works best, with system prompt engineering to result in less code output: https://github.com/minimaxir/simpleaichat/blob/main/examples...
comment by minimaxir · 2023-07-20 · in Custom instructions for ChatGPT -
…like a nice wrapper. I'm especially looking forward to playing with the structured data models bit: https://github.com/minimaxir/simpleaichat/blob/main/examples... Well done, Max!
comment by stavros · 2023-07-15 · in The Problem with LangChain -
…as cheap as possible, but still much more capable of modern AI tricks than most implementations" https://github.com/minimaxir/simpleaichat Separately, in the article, typo expect->except here: "LangChain uses about the same amount of code…
comment by Terretta · 2023-07-14 · in The Problem with LangChain -
…Also, the tools here are incredibly simple and easy to understand (very new) so looking at, say, https://github.com/minimaxir/simpleaichat/tree/main/simpleai... or https://github.com/smol-ai/developer and digging in to the prompts, what…
comment by theptip · 2023-07-02 · in Stanford A.I. Courses -
I've spent a lot of time experimenting with schema: https://github.com/minimaxir/simpleaichat/blob/main/examples...
comment by minimaxir · 2023-06-19 · in Show HN: Python package for interfacing with ChatGPT with minimized complexity -
Ah, I see I've been ninja'd by about 17 hours: https://github.com/minimaxir/simpleaichat/releases/tag/v0.2.... :-D
comment by senko · 2023-06-19 · in Show HN: Python package for interfacing with ChatGPT with minimized complexity -
The project has an implementation for the function logic: https://github.com/minimaxir/simpleaichat#functions
comment by H8crilA · 2023-06-19 · in Show HN: Python package for interfacing with ChatGPT with minimized complexity -
…my blog post on how to do it efficiently, but in practice it's just a simple, small prompt: https://github.com/minimaxir/simpleaichat/blob/main/PROMPTS....
comment by minimaxir · 2023-06-16 · in GPT-4 Can Use Tools Now–That’s a Big Deal -
…a demo of some system prompt engineering which resulted in better results for the older ChatGPT: https://github.com/minimaxir/simpleaichat/blob/main/examples... Coincidentially, the new gpt-3.5-turbo-0613 model also has better system…
comment by minimaxir · 2023-06-14 · in Native JSON Output from GPT-4 -
…for it so perhaps it'll be more reliable. While developing a more-simple LangChain alternative ( https://github.com/minimaxir/simpleaichat ) I discovered a neat trick for allowing ChatGPT to select tools from a list reliably: put the list…
comment by minimaxir · 2023-06-13 · in Function calling and other API updates