Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix: Add moonshot in get_bedrock_model_id

Sameer Kankutec4bab703068c
diff --git a/litellm/llms/bedrock/base_aws_llm.py b/litellm/llms/bedrock/base_aws_llm.py
index 71d21001cc3..0d5494541ec 100644
--- a/litellm/llms/bedrock/base_aws_llm.py
+++ b/litellm/llms/bedrock/base_aws_llm.py
@@ -369,6 +369,10 @@ class BaseAWSLLM:
model_id = BaseAWSLLM._get_model_id_from_model_with_spec(
model_id, spec="stability"
)
+ elif provider == "moonshot" and "moonshot/" in model_id:
+ model_id = BaseAWSLLM._get_model_id_from_model_with_spec(
+ model_id, spec="moonshot"
+ )
return model_id
@staticmethod