Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions packages/components/nodes/chatmodels/AWSBedrock/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,11 @@ export async function discoverInferenceProfiles(
}
nextToken = resp.nextToken
} while (nextToken)
_regionProfileCache.set(region, ids)
if (ids.size > 0) _regionProfileCache.set(region, ids)
Comment thread
Ankit5467 marked this conversation as resolved.
return ids
} catch {
const empty = new Set<string>()
_regionProfileCache.set(region, empty)
return empty
} catch (err) {
console.error(`[AWSBedrock] discoverInferenceProfiles(${region}) failed:`, err)
return new Set<string>()
}
}

Expand Down
Loading