Python binder for maidr library
# install the latest release from PyPI
pip install -U maidr
# or install the development version from GitHub
pip install -U git+https://github.com/xability/py_maidr.git
To use OpenAI or Gemini Models along with the maidr library, follow the steps below:
- Signup and get the API Keys for OpenAI or Gemini Models.
- Add the keys to environment variables so that python binder can access the keys. (Note: This only temporarily adds keys in environment variable, for persistent access you might want to add the export command to your shell configuration)
export OPENAI_API_KEY="<< add you key here >>"
export GEMINI_API_KEY="<< add you key here >>"
setx OPENAI_API_KEY "<< add you key here >>"
setx GEMINI_API_KEY "<< add you key here >>"
- Run your python program.