We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 915de93 commit 44a1cd0Copy full SHA for 44a1cd0
.eslintrc
@@ -25,7 +25,8 @@
25
"@typescript-eslint/ban-ts-comment": "off",
26
"no-prototype-builtins": "off",
27
"@typescript-eslint/no-empty-function": "off",
28
- "@typescript-eslint/consistent-type-imports": "warn"
+ "@typescript-eslint/consistent-type-imports": "warn",
29
+ "@typescript-eslint/switch-exhaustiveness-check": "error"
30
},
31
"ignorePatterns": ["node_modules/", "main.js"]
32
}
src/ai/AIAssistant.ts
@@ -214,9 +214,6 @@ function getModelMaxTokens(model: Model) {
214
return 16384;
215
case "gpt-4-32k":
216
return 32768;
217
- default:
218
- const exhaustiveCheck: never = model;
219
- throw new Error(`Unhandled model ${exhaustiveCheck}`);
220
221
222
0 commit comments