fix: update Bedrock model format check to use includes method for better accuracy

This commit is contained in:
andersonby
2025-08-06 21:44:03 +08:00
parent 79951920ea
commit d8f949fb47

View File

@@ -250,7 +250,8 @@ class BedrockRelayService {
};
// 如果已经是Bedrock格式直接返回
if (modelName.startsWith('us.anthropic.') || modelName.startsWith('anthropic.')) {
// Bedrock模型格式{region}.anthropic.{model-name} 或 anthropic.{model-name}
if (modelName.includes('.anthropic.') || modelName.startsWith('anthropic.')) {
return modelName;
}