all AI news
simpleaichat
Simon Willison's Weblog simonwillison.net
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