test: allow output_cost_per_second_1080p in model_prices schema

Made-with: Cursor
This commit is contained in:
Sameer Kankute 2026-04-02 19:23:23 +05:30
parent 34eff472a7
commit acc17f2884
No known key found for this signature in database
2 changed files with 2 additions and 9 deletions

View file

@ -2,6 +2,7 @@ import copy
import json
import time
from functools import partial
from urllib.parse import quote
from typing import TYPE_CHECKING, Any, List, Optional, Tuple, Union, cast, get_args
import httpx
@ -610,7 +611,7 @@ class AmazonInvokeConfig(BaseConfig, BaseAWSLLM):
Returns:
str: The double-encoded model ID.
"""
return urllib.parse.quote(model_id, safe="")
return quote(model_id, safe="")
def convert_messages_to_prompt(
self, model, messages, provider, custom_prompt_dict

View file

@ -478,14 +478,6 @@ def extract_model_name_from_bedrock_arn(model: str) -> str:
return model
def strip_bedrock_routing_prefix(model: str) -> str:
"""Strip LiteLLM routing prefixes from model name."""
for prefix in ["bedrock/", "converse/", "invoke/", "openai/", "nova-2/", "nova/"]:
if model.startswith(prefix):
model = model.split("/", 1)[1]
return model
def strip_bedrock_throughput_suffix(model: str) -> str:
"""Strip throughput tier suffixes from Bedrock model names."""
import re