Description
AI Functions is a small Python library that lets you define a function by its signature and a short description, then have a GPT model carry it out. The core file, ai_functions.py, provides an ai_function helper that takes a function signature, a list of arguments, a description and an optional model name. The default model is gpt-4, and you can pass another GPT model version. Setup means cloning the repository, installing the listed dependencies and providing an OpenAI API key, either in a keys.py file or as an environment variable. The repository includes a test file. The README says the project was inspired by Ask Marvin, and it documents its own limits. A table shows GPT-4 passing most sample tasks, such as generating a random password, encrypting text and finding missing numbers, while the triangle area task failed. GPT-3.5-turbo failed several format-sensitive tasks.…
Highlights
- Define functions by signature and description
- Uses OpenAI GPT models, gpt-4 by default
- Python module with a test file
- API key from keys.py or an environment variable
- Documented success table for GPT-4 and GPT-3.5-turbo
Ratings & Reviews
No ratings yet
Be the first to rate AI-Functions.
People also visit
AI-Functions FAQ
What is AI Functions?
A Python library that uses an OpenAI GPT model to carry out functions described by a signature and a short description.
What do I need to run it?
Python with the dependencies listed in the README, and an OpenAI API key stored in keys.py or in an environment variable.
Which model does it use?
gpt-4 by default. The model argument is optional, so you can pass another GPT model version.
Is it reliable for maths?
The README says it is not suited to precise calculations. Its triangle area example failed with both GPT-4 and GPT-3.5-turbo.
Is the source code available?
Yes. It is a public GitHub repository, and the README gives the steps to clone it.
What are the best AI-Functions alternatives?
Popular alternatives to AI-Functions include Abyss, PromptScript and 10x. See all AI-Functions alternatives



