Skip to main content

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

MIT

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

is_odd_llm-0.0.1.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.

is_odd_llm-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file is_odd_llm-0.0.1.tar.gz.

File metadata

  • Download URL: is_odd_llm-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for is_odd_llm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5dda2bef6b090a467f56b6d314c2533c0248e5cddfdddcbb965c999a44be6ccd
MD5 9042f527fded9eee583051b41bb84e9d
BLAKE2b-256 f1ace78b1b553f9d3ffd323226e86eb41b468b39e4160147185a0363ae32cee6

See more details on using hashes here.

File details

Details for the file is_odd_llm-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: is_odd_llm-0.0.1-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

Hashes for is_odd_llm-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d01a0155e86d5c4d5c520db2d1aa4b1982430fb5ddc179ebd2281c2688a4361
MD5 ca4141cf79f5ba269d08efec5d68781d
BLAKE2b-256 f444974aa75fe3045762acc2954592078b6f28b2bcdddf6bd70abb9bdf518874

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