Skip to content

Commit

Permalink
fix web build for evals
Browse files Browse the repository at this point in the history
  • Loading branch information
chitalian committed Jan 7, 2025
1 parent 16ca602 commit 7e2631f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { Col, Row } from "@/components/layout/common";
import { useInvalidateEvaluators } from "@/components/templates/evals/EvaluatorHook";
import { useTestDataStore } from "@/components/templates/evals/testing/testingStore";
import {
CompositeOption,
TestFunction,
} from "@/components/templates/evals/testing/types";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { useJawnClient } from "@/lib/clients/jawnHook";

import { Col, Row } from "@/components/layout/common";
import React, { useEffect, useState } from "react";
import MarkdownEditor from "../markdownEditor";
import useNotification from "../notification/useNotification";
import { CompositeOption } from "./types";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { useInvalidateEvaluators } from "@/components/templates/evals/EvaluatorHook";
import { TestFunction } from "@/components/templates/evals/panels/types";
import { useTestDataStore } from "@/components/templates/evals/testing/testingStore";

const modelOptions = ["gpt-4o", "gpt-4o-mini", "gpt-3.5-turbo"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function TestEvaluator() {
const { testData, setTestData } = useTestDataStore();

const [promptTemplate, setPromptTemplate] = useState<string | undefined>(
testData?.testInput.prompt ?? ""
testData?.testInput.promptTemplate ?? ""
);
const [result, setResult] = useState<EvaluatorTestResult>(null);
const [activeTab, setActiveTab] = useState("inputs");
Expand Down

0 comments on commit 7e2631f

Please sign in to comment.