mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: update Bedrock model format check to use includes method for better accuracy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user