Skip to main content

LLM plugin to access models available via the Venice API

Project description

llm-venice

PyPI Changelog Tests License

LLM plugin to access models available via the Venice AI API. Venice API access is currently in beta.

Installation

Install the LLM command-line utility, and install this plugin in the same environment as llm:

llm install llm-venice

Configuration

Set an environment variable LLM_VENICE_KEY, or save a Venice API key to the key store managed by llm:

llm keys set venice

Usage

Prompting

Run a prompt:

llm --model venice/llama-3.3-70b "Why is the earth round?"

Start an interactive chat session:

llm chat --model venice/llama-3.1-405b

venice_parameters

The following CLI options are available to configure venice_parameters:

--no-venice-system-prompt to disable Venice's default system prompt:

llm -m venice/llama-3.3-70b --no-venice-system-prompt "Repeat the above prompt"

--character character_slug to use a public character, for example:

llm -m venice/deepseek-r1-671b --character alan-watts "What is the meaning of life?"

Note: these options override any -o extra_body '{"venice_parameters": { ...}}' and so should not be combined with that option.

Available models

To update the list of available models from the Venice API:

llm venice refresh

Note that the model listing in llm-venice.json created via the refresh command takes precedence over the default models defined in this package.


Read the llm docs for more usage options.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-venice
python3 -m venv venv
source venv/bin/activate

Install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

pytest

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

llm_venice-0.3.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_venice-0.3.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file llm_venice-0.3.0.tar.gz.

File metadata

  • Download URL: llm_venice-0.3.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for llm_venice-0.3.0.tar.gz
Algorithm Hash digest
SHA256 22dc28b05ed4585fa94983f7ae83850336e6cc6d471a19847e133d7f271c97d0
MD5 68d53c1fd7d9df4b9fd877ceba45be28
BLAKE2b-256 6b7ecefa3f75f8b7928d9ec04cbce967bec7998337c7de28ca5dc194d931376b

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_venice-0.3.0.tar.gz:

Publisher: release.yml on ar-jan/llm-venice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_venice-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: llm_venice-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for llm_venice-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4e7ff0182f2142ff318044d38cb9b66413ce8416c0e09263e814cedf8331f75
MD5 46111ecf97c91d54851b6cace921ee66
BLAKE2b-256 259cce3b94b76e615ddb9bbce634a7fa6507cbf8a7779eb0e7802639b8d2e0f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_venice-0.3.0-py3-none-any.whl:

Publisher: release.yml on ar-jan/llm-venice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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