Skip to main content

Generate realtime AI Functions!

Project description

AI Function

Generate realtime AI Functions!

Installation

To install AI Function, run:

pip install AIFunction

Usage

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

What is an AI Function?

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

How does it work?

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.

Security

AI Functions are not very secure, as they run code without any user testing, and can be used to run malicious code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AIFunction-1.0.9.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AIFunction-1.0.9-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file AIFunction-1.0.9.tar.gz.

File metadata

  • Download URL: AIFunction-1.0.9.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for AIFunction-1.0.9.tar.gz
Algorithm Hash digest
SHA256 3dd33146ed269d974e50ace5109de4dae3b2cc8438bdd83382f9fd32cfe44b2b
MD5 c9bd36e649a7ef1b35a3e962185452a7
BLAKE2b-256 d329f3a19886d6ed8b1e70289570cef2a9b52c671f30620318b1ca75fd0bd511

See more details on using hashes here.

File details

Details for the file AIFunction-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: AIFunction-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for AIFunction-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 50528ba3b8bcd3ed382d31e1ff80a2e97f6b5881b02b51192fd6ee13df34d99b
MD5 1440547fedb0957dca2dc99704f847d8
BLAKE2b-256 fe5eec8a6e49d0acd695cfe82098ffe84f978deb6939ec4b8151f657e0a8b6dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page