An LLM CLI plugin for Cloudflare Workers AI models.
Project description
cloudflare-llm
🚧 Work in progress
A plugin for the llm
CLI that allows you to use the text generation models (LLMs) running on Cloudflare Workers AI.
Usage
# Install the plugin
llm install llm-cloudflare
# Provide a valid Workers AI token
# Docs: https://developers.cloudflare.com/workers-ai/get-started/rest-api/#1-get-api-token-and-account-id
llm keys set cloudflare
# Set your Cloudflare account ID
# Docs: https://developers.cloudflare.com/workers-ai/get-started/rest-api/#1-get-api-token-and-account-id
export CLOUDFLARE_ACCOUNT_ID="33charlonghexstringhere"
The default model is currently the Llama 3.1 8B instruct model
Model library
TODO
License
Copyright Cloudflare, Inc (2024). Apache-2.0 licensed. See the LICENSE file for details.
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_cloudflare-0.1.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for llm_cloudflare-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e3b98d746a3eeb9c3e87798b712e95a348a7dd4e0fd3884cc4df63f40cffd4 |
|
MD5 | 3ae4e0016b3babc290b815edfc47158e |
|
BLAKE2b-256 | 212edebacfef8544424c06757b94d32d814e0a36c425fd25b314ddcdcce265de |