https://github.com/llm-workflow-engine/lwe-plugin-provider-ai21
LLM Workflow Engine (LWE) AI21 Provider plugin
https://github.com/llm-workflow-engine/lwe-plugin-provider-ai21
Last synced: 2 months ago
JSON representation
LLM Workflow Engine (LWE) AI21 Provider plugin
- Host: GitHub
- URL: https://github.com/llm-workflow-engine/lwe-plugin-provider-ai21
- Owner: llm-workflow-engine
- Created: 2023-07-13T02:57:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T19:30:13.000Z (7 months ago)
- Last Synced: 2024-12-31T22:41:54.500Z (4 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLM Workflow Engine (LWE) AI21 Provider plugin
AI21 Provider plugin for [LLM Workflow Engine](https://github.com/llm-workflow-engine/llm-workflow-engine)
Access to [AI21](https://docs.ai21.com/docs/jurassic-2-models) models.
## Installation
### Export API key
Grab an AI21 API key from [https://studio.ai21.com/account/api-key](https://studio.ai21.com/account/api-key)
Export the key into your local environment:
```bash
export AI21_API_KEY=
```### From packages
Install the latest version of this software directly from github with pip:
```bash
pip install git+https://github.com/llm-workflow-engine/lwe-plugin-provider-ai21
```### From source (recommended for development)
Install the latest version of this software directly from git:
```bash
git clone https://github.com/llm-workflow-engine/lwe-plugin-provider-ai21.git
```Install the development package:
```bash
cd lwe-plugin-provider-ai21
pip install -e .
```## Configuration
Add the following to `config.yaml` in your profile:
```yaml
plugins:
enabled:
- provider_ai21
# Any other plugins you want enabled...
```## Usage
From a running LWE shell:
```
/provider ai21
/model model j2-large
```