Skip to content

Commit a87bdcd

Browse files
committed
Bedrock ListFoundationModels example
1 parent fbc3302 commit a87bdcd

File tree

1 file changed

+2
-1
lines changed
  • swift/example_code/bedrock/ListFoundationModels/Sources

1 file changed

+2
-1
lines changed

swift/example_code/bedrock/ListFoundationModels/Sources/entry.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ struct ExampleCommand: ParsableCommand {
110110
print("No models returned.")
111111
return
112112
}
113-
// snippet-end:[swift.bedrock.ListFoundationModels]
114113

114+
// Output a list of the models with their details.
115115
for summary in summaries {
116116
print("==========================================")
117117
print(" Model ID: \(summary.modelId ?? "<unknown>")")
@@ -124,6 +124,7 @@ struct ExampleCommand: ParsableCommand {
124124
print(" Supported inference types: \(buildInferenceList(inferences: summary.inferenceTypesSupported))")
125125
print("------------------------------------------\n")
126126
}
127+
// snippet-end:[swift.bedrock.ListFoundationModels]
127128

128129
print("\(summaries.count) models available.")
129130
}

0 commit comments

Comments
 (0)