A Python package to check if a number is odd using an AI model.
Project description
is-odd-ai
A project inspired by the npm version is-odd-ai
is-odd-ai
uses OpenAI's GPT-4o-mini model to determine if a number is odd or even. AI to the moon 🚀🚀🌝!
Installation
To install is-odd-ai
, use pip:
pip install is-odd-ai
Usage
To use is-odd-ai
, you will need an OpenAI key.
Here is an example.
from is_odd_ai import OddChecker
odd_checker = OddChecker("api key here")
odd_checker.is_odd(5) # True
odd_checker.is_odd(6) # False
odd_checker.is_odd("abc") # Hopefully a ValueError. AI to the moon!
Contributing
Be part of this project! Open to contributions.
License
MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
is_odd_ai-0.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for is_odd_ai-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d1de8a0d6e3214885324b8abf368417897d719fac9a20bafb8f6723996a1cda |
|
MD5 | a42b32110bf155e4f07bbee3071cd400 |
|
BLAKE2b-256 | bae18d43765e1c6b714f09306c913d47742b30cb62d9866b9a1f80af4dfa9d91 |