forked from phoenix/litellm-mirror
(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:
parent
fc685c1f74
commit
7959dc9db3
4 changed files with 23 additions and 3 deletions
|
@ -53,9 +53,15 @@ class AmazonStability3Config:
|
|||
sd3-medium
|
||||
sd3.5-large
|
||||
sd3.5-large-turbo
|
||||
|
||||
Stability ultra models
|
||||
stable-image-ultra-v1
|
||||
"""
|
||||
if model and ("sd3" in model or "sd3.5" in model):
|
||||
return True
|
||||
if model:
|
||||
if "sd3" in model or "sd3.5" in model:
|
||||
return True
|
||||
if "stable-image-ultra-v1" in model:
|
||||
return True
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -5620,6 +5620,13 @@
|
|||
"litellm_provider": "bedrock",
|
||||
"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": {
|
||||
"max_tokens": 4096,
|
||||
"max_input_tokens": 4096,
|
||||
|
|
|
@ -5620,6 +5620,13 @@
|
|||
"litellm_provider": "bedrock",
|
||||
"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": {
|
||||
"max_tokens": 4096,
|
||||
"max_input_tokens": 4096,
|
||||
|
|
|
@ -10,7 +10,7 @@ import os
|
|||
|
||||
sys.path.insert(
|
||||
0, os.path.abspath("../..")
|
||||
) # Adds the parent directory to the system path
|
||||
) # Adds the parent directory to the system-path
|
||||
from typing import Literal
|
||||
|
||||
import pytest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue