open-webui / pipelines

Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework
MIT License
1.03k stars 321 forks source link

Adding Examples:AWS Bedrock claude #169

Closed g453030291 closed 3 months ago

g453030291 commented 4 months ago

This is an example of a pipeline that adds support for Claude integration on the AWS Bedrock

justinh-rahb commented 4 months ago

@g453030291 it's highly encouraged to use a frontmatter at the head of your file, otherwise LGTM!

Example:

"""
title: Anthropic Manifold Pipeline
author: justinh-rahb
date: 2024-06-20
version: 1.3
license: MIT
description: A pipeline for generating text and processing images using the Anthropic API.
requirements: requests, anthropic
environment_variables: ANTHROPIC_API_KEY
"""

import os
from anthropic import Anthropic, RateLimitError, APIStatusError, APIConnectionError

... rest of code ...
g453030291 commented 3 months ago

i have modified and resumbit the code, pls check @justinh-rahb