s
June 8, 2023, 9:06 p.m. |

Simon Willison's Weblog simonwillison.net

simpleaichat


Max Woolf released his own Python package for building against the GPT-3.5 and GPT-4 APIs (and potentially other LLMs in the future).

It's a very clean piece of API design with some useful additional features: there's an AsyncAIChat subclass that works with Python asyncio, and the library includes a mechanism for registering custom functions that can then be called by the LLM as tools.

One trick I haven't seen before: it uses a combination of max_tokens: 1 and a …

ai api api design apis asyncio building chatgpt design features functions future generativeai gpt gpt-3 gpt-3.5 gpt-4 library llms max maxwoolf openai package promptengineering python

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne