LLM plugin to access models available via the Venice API
Project description
llm-venice
LLM plugin to access models available via the Venice AI API. Venice API access is currently in beta.
Installation
Either install this plugin alongside an existing LLM install:
llm install llm-venice
Or install both using your package manager of choice, e.g.:
pip 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
Vision models
Vision models (currently qwen-2.5-vl) support the --attachment option:
llm -m venice/qwen-2.5-vl -a https://upload.wikimedia.org/wikipedia/commons/a/a9/Corvus_corone_-near_Canford_Cliffs%2C_Poole%2C_England-8.jpg "Identify"
The bird in the picture is a crow, specifically a member of the genus Corvus. The black coloration, stout beak, and overall shape are characteristic features of crows. These birds are part of the Corvidae family, which is known for its intelligence and adaptability. [...]
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_venice-0.4.0.tar.gz.
File metadata
- Download URL: llm_venice-0.4.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4845d6d7350c3a18ae39205ea9a14d03c06b005bfe1d03a72a01aa6498d98b35
|
|
| MD5 |
1eac4b14cc3c4460c71b8e70fc16f4e3
|
|
| BLAKE2b-256 |
37523483c46506266304e72efd8c87a261697e621e29a7f9e0eb2fe7f25a4606
|
Provenance
The following attestation bundles were made for llm_venice-0.4.0.tar.gz:
Publisher:
release.yml on ar-jan/llm-venice
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_venice-0.4.0.tar.gz -
Subject digest:
4845d6d7350c3a18ae39205ea9a14d03c06b005bfe1d03a72a01aa6498d98b35 - Sigstore transparency entry: 171708703
- Sigstore integration time:
-
Permalink:
ar-jan/llm-venice@a5b68acb8c86c63fd8d5f648303a690942014809 -
Branch / Tag:
refs/tags/0.4.0 - Owner: https://github.com/ar-jan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a5b68acb8c86c63fd8d5f648303a690942014809 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_venice-0.4.0-py3-none-any.whl.
File metadata
- Download URL: llm_venice-0.4.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4d1c7064a661de2113e66951bbd2de7386c8e571c085721b9b8ff804391ba6
|
|
| MD5 |
b7526dc671375792073644482e36146a
|
|
| BLAKE2b-256 |
8c26c400ca8330965b85555e8e3e3fd1925beaa23d5e1ce48611499685c9bf6e
|
Provenance
The following attestation bundles were made for llm_venice-0.4.0-py3-none-any.whl:
Publisher:
release.yml on ar-jan/llm-venice
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_venice-0.4.0-py3-none-any.whl -
Subject digest:
aa4d1c7064a661de2113e66951bbd2de7386c8e571c085721b9b8ff804391ba6 - Sigstore transparency entry: 171708708
- Sigstore integration time:
-
Permalink:
ar-jan/llm-venice@a5b68acb8c86c63fd8d5f648303a690942014809 -
Branch / Tag:
refs/tags/0.4.0 - Owner: https://github.com/ar-jan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a5b68acb8c86c63fd8d5f648303a690942014809 -
Trigger Event:
release
-
Statement type: