llm-palm
Plugin for LLM adding support for Google's PaLM 2 model.
Installation
Install this plugin in the same environment as LLM.
llm install llm-palm
Configuration
You will need an API key from Google. Instructions for obtaining one: https://developers.generativeai.google/tutorials/setup
You can set that as an environment variable called PALM_API_KEY, or add it to the llm set of saved keys using:
llm keys set palm
Enter key: <paste key here>
Usage
This plugin adds a model called palm. You can execute it like this:
llm -m palm "Ten great names for a pet pelican"
PaLM also supports system prompts:
echo "I like pelicans a lot" | llm -m palm --system "Translate to french"
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-palm
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for llm-palm 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm-palm-0.1.tar.gz | 7.6 kB | Without provenance | Details for llm-palm-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_palm-0.1-py3-none-any.whl | Python 3 | none | any | Details for llm_palm-0.1-py3-none-any.whl |
Total release size: 14.7 kB
Release files / llm-palm-0.1.tar.gz
| Download URL | llm-palm-0.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
874fe85be2338b8e49cc5423e465afb7cc1fe80bfc2ac62b7402d6a2fa220e58
|
|
BLAKE2b-256 checksum How to use checksums |
8bf41cb9aad948f715a8af64c2dd5cc34d64b0c2f6b5c7864d0de22602b24864
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / llm_palm-0.1-py3-none-any.whl
| Download URL | llm_palm-0.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d31664052710394bfc806eea9892ace239cbccdbc7d13da6098982e06cad5eea
|
|
BLAKE2b-256 checksum How to use checksums |
6a92ff0b51f78fc93b2c9b1a7975621fe106e5a1992de3681650abe7fa0443a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for llm-palm 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.