mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(bedrock): report inference profile support in model metadata (#9020)
Derive INFERENCE_PROFILE support from existing system profile routes while preserving regional ON_DEMAND support and request-filter validation. Cover Get and List metadata through raw SDK strings, including profile-only and unavailable regions. Closes #8450
This commit is contained in:
1 parent
1ffa5ed2c9
commit
683cb84080
4 files changed
+87
-4
No files matched your search
@@ -349,6 +349,10 @@ public class BedrockController {
|
||||
if (model.servedInRegion(region)) {
|
||||
inferenceTypes.add("ON_DEMAND");
|
||||
}
|
||||
if (BedrockModelCatalog.profilesFrom(region).stream()
|
||||
.anyMatch(profile -> profile.modelId().equals(model.modelId()))) {
|
||||
inferenceTypes.add("INFERENCE_PROFILE");
|
||||
}
|
||||
node.putObject("modelLifecycle").put("status", model.lifecycleStatus());
|
||||
return node;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user