Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MS-632] [API] Update connector retry mechanism with tenacity library. Remove allow_retries #122

Merged
merged 8 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions connectors-endpoints/amazon-bedrock-ai21-labs-j2-mid-connector.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "ai21.j2-mid-v1",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "ai21.j2-ultra-v1",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "ai21.jamba-instruct-v1:0",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "amazon.titan-text-express-v1",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "amazon.titan-text-lite-v1",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "anthropic.claude-3-haiku-20240307-v1:0",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "anthropic.claude-3-opus-20240229-v1:0",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "anthropic.claude-3-sonnet-20240229-v1:0",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
25 changes: 12 additions & 13 deletions connectors-endpoints/amazon-bedrock-cohere-command-connector.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"name": "Amazon Bedrock - Cohere Command",
"connector_type": "amazon-bedrock-connector",
"uri": "DEFAULT",
"token": "Use environment variables!",
"max_calls_per_second": 1,
"max_concurrency": 1,
"model": "cohere.command-text-v14",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "cohere.command-light-text-v14",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
25 changes: 12 additions & 13 deletions connectors-endpoints/amazon-bedrock-cohere-command-r-connector.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "cohere.command-r-plus-v1:0",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"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"
}
"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,
"model": "meta.llama3-1-405b-instruct-v1:0",
"params": {
"timeout": 300,
"max_attempts": 3,
"temperature": 0.5
}
}
Loading
Loading