We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6615f66 commit b2eee58Copy full SHA for b2eee58
extensions/copilot/src/platform/endpoint/node/routerDecisionFetcher.ts
@@ -38,6 +38,11 @@ export interface RoutingContextSignals {
38
prompt_char_count?: number;
39
}
40
41
+/**
42
+ * Thrown when the router API returns a non-OK HTTP response.
43
+ * Carries the parsed `errorCode` from the response body (e.g. `no_vision_models`)
44
+ * so callers can classify the failure without string-matching the message.
45
+ */
46
export class RouterDecisionError extends Error {
47
override readonly name = 'RouterDecisionError';
48
constructor(message: string, public readonly errorCode?: string) {
0 commit comments