Observed since 21 Oct, 10:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Generate realtime AI Functions!
Generate realtime AI Functions!
To install AI Function, run:
pip install AIFunction
To use AIFunction, you must have an OpenAI API key.
Firstly, add a .env file to your project, and add the following:
OPENAI_API_KEY="key_here"
Then, import the aiFunction function:
from AIFunction import aiFunction
Now, you can use the aiFunction function to generate AI Functions!
print(aiFunction("bitcoin_price", "Returns the current price of bitcoin."));
# --> 27002.055
Let's say you want to write a function to get the current time in python. All you have to do is:
from AIFunction import aiFunction
print(aiFunction("time", "Returns the current time."));
# --> 12:00:00
AI function uses OpenAI's GPT model to generate the code for the function. It then runs the code and returns the output. If specified, it will also install the required packages for the code.
AI Functions are not very secure, as they run code without any user testing, and can be used to run malicious code.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.9 | 8 Apr 2023 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 10:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:beb37d769450b8e51cd85efa3b507b041904ff839822cbcc9de188d45d925dc5