Skip to main content

Plugin for LLM adding support for Google's PaLM 2 model

Project description

llm-palm

PyPI Changelog Tests License

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm-palm-0.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

llm_palm-0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file llm-palm-0.1.tar.gz.

File metadata

  • Download URL: llm-palm-0.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for llm-palm-0.1.tar.gz
Algorithm Hash digest
SHA256 874fe85be2338b8e49cc5423e465afb7cc1fe80bfc2ac62b7402d6a2fa220e58
MD5 5f799d5fc1a8e7409318152754ef30f8
BLAKE2b-256 8bf41cb9aad948f715a8af64c2dd5cc34d64b0c2f6b5c7864d0de22602b24864

See more details on using hashes here.

File details

Details for the file llm_palm-0.1-py3-none-any.whl.

File metadata

  • Download URL: llm_palm-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for llm_palm-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d31664052710394bfc806eea9892ace239cbccdbc7d13da6098982e06cad5eea
MD5 1908a0d158f2079f51ca2a7ae5bc864a
BLAKE2b-256 6a92ff0b51f78fc93b2c9b1a7975621fe106e5a1992de3681650abe7fa0443a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page