A Python package using LLM to determine if a number is odd
Project description
is-odd-llm
LLM is so powerful 💪, let's use it to check if a number is odd.
Inspired by is-odd-ai. So I build a Python version of it.
Install
pip install is-odd-llm
Usage
set up your OpenAI API key in the environment variable OPENAI_API_KEY
export OPENAI_API_KEY="sk-..."
then you can use the is_odd function to check if a number is odd.
Example
from is_odd_llm import is_odd
print(is_odd(1)) # high probability is True
print(is_odd(2)) # high probability is False
Contributing
Feel free to open an issue or a PR or any other suggestions.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file is_odd_llm-0.1.0.tar.gz.
File metadata
- Download URL: is_odd_llm-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
970712d7d8dd5f11ff9eea5aceeff14d2d93ddfe8b8bf48e240328dbed5c24a2
|
|
| MD5 |
fc71730cb230843a42b9d535a8653a7d
|
|
| BLAKE2b-256 |
7553f62d3f187dc624f3aa57593012f99028b2e2e31d67bf78bc368b47b628b4
|
File details
Details for the file is_odd_llm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: is_odd_llm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c4c298dded21a9e058a1749f3b41f69ae89dcb0c77e048c0a1f4994872a9ebf
|
|
| MD5 |
f323822f6f2a96b9885d25593f2d27d4
|
|
| BLAKE2b-256 |
ad4258ec3edb9960c4f42c6e23eee7172098d344a538b5ad98695626b1eedc08
|