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
19 changes: 19 additions & 0 deletions src/platform/endpoint/node/automodeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,25 @@
this._logService.error(errorMsg);
throw new Error(errorMsg);
}
if (shouldRoute) {
// If routing was attempted but failed, emit event that we are falling back to the reserved model
{
/* __GDPR__
"automode.routerDecisionFallback" : {
"owner": "tyleonha",
"comment": "Reports a fallback event when the router fails to return a valid model and we have to fall back to the reserved model.",
"availableModels": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Comma-separated list of available models for this request" },
"preferredModels": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Comma-separated list of preferred models for this request, ordered by preference with the reserved model first" },
"chosenModel": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "The fallback model used when router fails" }
}
*/
this._telemetryService.sendMSFTTelemetryEvent('automode.routerDecisionFallback', {
'availableModels': availableModels.join(','),
'preferredModels': preferredModels.join(','),
'chosenModel': selectedModel.model,
})

Check failure on line 259 in src/platform/endpoint/node/automodeService.ts

View workflow job for this annotation

GitHub Actions / Test (Linux)

Missing semicolon
}
}
}
selectedModel = this._applyVisionFallback(chatRequest, selectedModel, reserveToken.available_models, knownEndpoints);

Expand Down
Loading