feat(core): implement towards policy-driven model fallback mechanism (#13781)

This commit is contained in:
Adam Weidman
2025-11-26 12:36:42 -08:00
committed by GitHub
parent 0f12d6c426
commit 87edeb4e32
8 changed files with 550 additions and 40 deletions

View File

@@ -64,7 +64,7 @@ describe('ModelAvailabilityService', () => {
healthyModel,
]);
expect(first).toEqual({
selected: stickyModel,
selectedModel: stickyModel,
attempts: 1,
skipped: [
{
@@ -81,7 +81,7 @@ describe('ModelAvailabilityService', () => {
healthyModel,
]);
expect(second).toEqual({
selected: healthyModel,
selectedModel: healthyModel,
skipped: [
{
model,
@@ -101,7 +101,7 @@ describe('ModelAvailabilityService', () => {
healthyModel,
]);
expect(third).toEqual({
selected: stickyModel,
selectedModel: stickyModel,
attempts: 1,
skipped: [
{