(feat) add bedrock/stability.stable-image-ultra-v1:0 (#6723)

* add stability.stable-image-ultra-v1:0

* add pricing for stability.stable-image-ultra-v1:0

* fix test_supports_response_schema

* ci/cd run again
This commit is contained in:
Ishaan Jaff 2024-11-14 14:47:15 -08:00 committed by GitHub
parent fc685c1f74
commit 7959dc9db3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 23 additions and 3 deletions

View file

@ -53,8 +53,14 @@ class AmazonStability3Config:
sd3-medium sd3-medium
sd3.5-large sd3.5-large
sd3.5-large-turbo sd3.5-large-turbo
Stability ultra models
stable-image-ultra-v1
""" """
if model and ("sd3" in model or "sd3.5" in model): if model:
if "sd3" in model or "sd3.5" in model:
return True
if "stable-image-ultra-v1" in model:
return True return True
return False return False

View file

@ -5620,6 +5620,13 @@
"litellm_provider": "bedrock", "litellm_provider": "bedrock",
"mode": "image_generation" "mode": "image_generation"
}, },
"stability.stable-image-ultra-v1:0": {
"max_tokens": 77,
"max_input_tokens": 77,
"output_cost_per_image": 0.14,
"litellm_provider": "bedrock",
"mode": "image_generation"
},
"sagemaker/meta-textgeneration-llama-2-7b": { "sagemaker/meta-textgeneration-llama-2-7b": {
"max_tokens": 4096, "max_tokens": 4096,
"max_input_tokens": 4096, "max_input_tokens": 4096,

View file

@ -5620,6 +5620,13 @@
"litellm_provider": "bedrock", "litellm_provider": "bedrock",
"mode": "image_generation" "mode": "image_generation"
}, },
"stability.stable-image-ultra-v1:0": {
"max_tokens": 77,
"max_input_tokens": 77,
"output_cost_per_image": 0.14,
"litellm_provider": "bedrock",
"mode": "image_generation"
},
"sagemaker/meta-textgeneration-llama-2-7b": { "sagemaker/meta-textgeneration-llama-2-7b": {
"max_tokens": 4096, "max_tokens": 4096,
"max_input_tokens": 4096, "max_input_tokens": 4096,

View file

@ -10,7 +10,7 @@ import os
sys.path.insert( sys.path.insert(
0, os.path.abspath("../..") 0, os.path.abspath("../..")
) # Adds the parent directory to the system path ) # Adds the parent directory to the system-path
from typing import Literal from typing import Literal
import pytest import pytest