Skip to content

Commit

Permalink
Merge pull request #91 from athewsey/feat/aws-connectors
Browse files Browse the repository at this point in the history
Connector for Amazon Bedrock
  • Loading branch information
imda-jacksonboey authored Sep 23, 2024
2 parents e8d018d + 9f4d532 commit a44c494
Show file tree
Hide file tree
Showing 24 changed files with 506 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,13 @@ Please fork the repo and create a pull request. You can also open an issue with
### Connectors

| Connector | Description |
|---|---|
| Claude2 | For Claude2 API|
| HuggingFace | For HuggingFace Inference Endpoints |
| OpenAI | For OpenAI API |
| TogetherAI | For TogetherAI Severless API |
|---|---|
| [amazon-bedrock-connector](connectors/amazon-bedrock-connector.py) | For models consumed through [AWS' Bedrock service](https://aws.amazon.com/bedrock/) |
| [azure-openai-connector](connectors/azure-openai-connector.py) | For models consumed through [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/ai-services/openai-service) |
| [claude2-connector](connectors/aude2-connector.py) | For Anthropic's [Claude 2 API](https://www.anthropic.com/api) |
| [huggingface-connector](connectors/huggingface-connector.py) | For [Hugging Face Inference Endpoints](https://huggingface.co/docs/inference-endpoints/index) |
| [openai-connector](connectors/openai-connector.py) | For the [OpenAI API](https://openai.com/api/) |
| [together-connector](connectors/together-connector.py) | For [TogetherAI Severless API](https://www.together.ai/products#inference) |

</br>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - AI21 Labs Jurassic-2 Mid",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "ai21.j2-mid-v1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - AI21 Labs Jurassic-2 Ultra",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "ai21.j2-ultra-v1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - AI21 Labs Jamba Instruct",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "ai21.jamba-instruct-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Titan Text G1 - Express",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "amazon.titan-text-express-v1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Titan Text G1 - Lite",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "amazon.titan-text-lite-v1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Anthropic Claude 3.5 Sonnet",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Anthropic Claude 3 Haiku",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "anthropic.claude-3-haiku-20240307-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Anthropic Claude 3 Opus",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "anthropic.claude-3-opus-20240229-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Anthropic Claude 3 Sonnet",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "anthropic.claude-3-sonnet-20240229-v1:0"
}
}
15 changes: 15 additions & 0 deletions connectors-endpoints/amazon-bedrock-cohere-command-connector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Cohere Command",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "cohere.command-text-v14"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Cohere Command Light",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "cohere.command-light-text-v14"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Cohere Command R+",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "cohere.command-r-plus-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Llama 3.1 405B Instruct",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "meta.llama3-1-405b-instruct-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Llama 3.1 70B Instruct",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "meta.llama3-1-70b-instruct-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Llama 3.1 8B Instruct",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "meta.llama3-1-8b-instruct-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Llama 3 70B Instruct",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "meta.llama3-70b-instruct-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Llama 3 8B Instruct",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "meta.llama3-8b-instruct-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Mistral 7B Instruct",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "mistral.mistral-7b-instruct-v0:2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Mistral Large 2",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "mistral.mistral-large-2407-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Mistral Large",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "mistral.mistral-large-2402-v1:0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Amazon Bedrock - Mixtral 8x7B Instruct",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"params": {
"timeout": 300,
"allow_retries": true,
"num_of_retries": 3,
"temperature": 0.5,
"model": "mistral.mixtral-8x7b-instruct-v0:1"
}
}
Loading

0 comments on commit a44c494

Please sign in to comment.