Skip to content

Commit

Permalink
fix: fix types for playground page
Browse files Browse the repository at this point in the history
  • Loading branch information
YashKarthik committed Jul 29, 2024
1 parent 56d3f23 commit 5e57d3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/components/templates/playground/playgroundPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import Image from "next/image";
import {
ProviderName,
playgroundModels as PLAYGROUND_MODELS,
playgroundModels,
} from "../../../packages/cost/providers/mappings";
import FunctionButton from "./functionButton";
import HcButton from "../../ui/hcButton";
Expand Down Expand Up @@ -104,7 +105,7 @@ const PlaygroundPage = (props: PlaygroundPageProps) => {
}, [tools, requestId]);

useEffect(() => {
fetchFineTuneModels(providerAPIKey, setPLAYGROUND_MODELS);
fetchFineTuneModels(providerAPIKey, setPlaygroundModels);
}, [providerAPIKey]);

const [newPlaygroundOpen, setNewPlaygroundOpen] = useLocalStorage<boolean>(
Expand Down Expand Up @@ -600,6 +601,7 @@ export default PlaygroundPage;
/** Types and Function for using finetuned models in Playground, Experiments Page */
interface PlaygroundPageProps {
request?: string;
showNewButton: boolean;
}

export type PlaygroundModel = {
Expand Down

0 comments on commit 5e57d3b

Please sign in to comment.