Skip to content

Commit 58043c0

Browse files
committed
Removed debugging
2 parents 97c0c59 + 6fb7053 commit 58043c0

File tree

2 files changed

+0
-43
lines changed

2 files changed

+0
-43
lines changed

weave-js/src/components/PagePanelComponents/Home/Browse3/pages/MonitorsPage/MonitorFormDrawer.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -292,18 +292,6 @@ export const MonitorFormDrawer = ({
292292
const objCreate = useObjCreate();
293293

294294
const createMonitor = useCallback(async () => {
295-
console.log('=== CREATE MONITOR DEBUG ===');
296-
console.log('scorerValids:', scorerValids);
297-
console.log(
298-
'scorers:',
299-
scorers.map((s, i) => ({
300-
index: i,
301-
type: s.val['_type'],
302-
objectId: s.objectId,
303-
hasForm: SCORER_FORMS.get(s.val['_type']) !== null,
304-
}))
305-
);
306-
307295
// Mark that we've submitted
308296
setHasSubmitted(true);
309297

@@ -350,16 +338,6 @@ export const MonitorFormDrawer = ({
350338
scorers.forEach((scorer, index) => {
351339
const hasForm = SCORER_FORMS.get(scorer.val['_type']) !== null;
352340
const isValid = scorerValids[index];
353-
354-
console.log(`Scorer ${index} validation:`, {
355-
type: scorer.val['_type'],
356-
hasForm,
357-
isValid,
358-
objectId: scorer.objectId,
359-
scoring_prompt: scorer.val['scoring_prompt'],
360-
model: scorer.val['model'],
361-
});
362-
363341
const errors: {
364342
scorerName?: string;
365343
scoringPrompt?: string;

weave-js/src/components/PagePanelComponents/Home/Browse3/pages/MonitorsPage/ScorerForms/LLMAsAJudgeScorerForm.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ Consider both explicit sentiment indicators and implicit emotional undertones.
129129

130130
export const LLMAsAJudgeScorerForm = forwardRef<ScorerFormRef, ScorerFormProps>(
131131
({scorer, onValidationChange, validationErrors, monitorName}, ref) => {
132-
console.log('LLMAsAJudgeScorerForm rendered with:', {
133-
scorer,
134-
validationErrors,
135-
});
136-
137132
// Track which fields have been touched
138133
const [touchedFields, setTouchedFields] = useState<{
139134
scoringPrompt?: boolean;
@@ -227,17 +222,8 @@ export const LLMAsAJudgeScorerForm = forwardRef<ScorerFormRef, ScorerFormProps>(
227222

228223
// Properly validate on mount and when dependencies change
229224
useEffect(() => {
230-
console.log('LLMAsAJudgeScorerForm validation check:', {
231-
scoringPrompt,
232-
judgeModel,
233-
judgeModelName,
234-
systemPrompt,
235-
responseFormat,
236-
});
237-
238225
// Call validation with current state
239226
const isValid = !!scoringPrompt && !!judgeModel;
240-
console.log('Validation result:', isValid);
241227
onValidationChange(isValid);
242228
// eslint-disable-next-line react-hooks/exhaustive-deps
243229
}, [scoringPrompt, judgeModel]);
@@ -337,7 +323,6 @@ export const LLMAsAJudgeScorerForm = forwardRef<ScorerFormRef, ScorerFormProps>(
337323
val: model,
338324
},
339325
});
340-
console.log('saveModel', 'post response', response);
341326
return `weave:///${projectId}/object/${model.name}:${response.digest}`;
342327
} catch (error) {
343328
console.error('Failed to save model:', error);
@@ -503,12 +488,6 @@ Remember: Your response must be valid JSON that can be parsed programmatically.
503488

504489
// Validate all fields when judge model changes
505490
const isValid = !!scorerName && !!scoringPrompt && !!newJudgeModel;
506-
console.log('onJudgeModelChange validation:', {
507-
scorerName: !!scorerName,
508-
scoringPrompt: !!scoringPrompt,
509-
newJudgeModel: !!newJudgeModel,
510-
isValid,
511-
});
512491
onValidationChange(isValid);
513492
},
514493
[scoringPrompt, savedModels, scorerName, setJudgeModel, onValidationChange]

0 commit comments

Comments
 (0)