mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix(ui): name the object arguments at two new call sites to bring the inline-object lint budget back under its ceiling
This commit is contained in:
parent
2151dcbd73
commit
c27f1e348d
3 changed files with 7 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"no-console": { "max": 12, "target": 0 },
|
||||
"complexity": { "max": 140, "target": 80 },
|
||||
"max-depth": { "max": 70, "target": 30 },
|
||||
"local/no-large-inline-object-arg": { "max": 555, "target": 300 },
|
||||
"local/no-large-inline-object-arg": { "max": 554, "target": 300 },
|
||||
"local/no-long-condition-chain": { "max": 265, "target": 120 },
|
||||
"testing-library/no-container": { "max": 133, "target": 50 },
|
||||
"testing-library/no-node-access": { "max": 716, "target": 500 },
|
||||
|
|
|
|||
|
|
@ -315,12 +315,13 @@ const ClassificationMethodConfig: React.FC<ClassificationMethodConfigProps> = ({
|
|||
timeout_ms: value.classifier_llm_config?.timeout_ms ?? DEFAULT_CLASSIFIER_TIMEOUT_MS,
|
||||
classification_rubric: selectedRubric,
|
||||
};
|
||||
onChange({
|
||||
const nextValue: ComplexityRouterConfigValue = {
|
||||
...value,
|
||||
...(selectedRubric && { classifier_llm_config: rubricConfig }),
|
||||
classification_prompt: classificationPrompt,
|
||||
classification_examples: classificationExamples,
|
||||
});
|
||||
};
|
||||
onChange(nextValue);
|
||||
};
|
||||
|
||||
const handleClassifierModelChange = (model: string) => {
|
||||
|
|
|
|||
|
|
@ -1170,12 +1170,13 @@ describe("buildComplexityRouterConfig stall escalation", () => {
|
|||
});
|
||||
|
||||
it("emits the toggle and both knobs when it is on", () => {
|
||||
const config = buildComplexityRouterConfig({
|
||||
const params: BuildComplexityRouterConfigParams = {
|
||||
...baseParams,
|
||||
stallEscalationEnabled: true,
|
||||
stallEscalationWindow: 8,
|
||||
stallEscalationRepeatThreshold: 4,
|
||||
});
|
||||
};
|
||||
const config = buildComplexityRouterConfig(params);
|
||||
expect(config.stall_escalation_enabled).toBe(true);
|
||||
expect(config.stall_escalation_window).toBe(8);
|
||||
expect(config.stall_escalation_repeat_threshold).toBe(4);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue