From 5e57d3b2c925b4774e5a0391f76d600fb8f49725 Mon Sep 17 00:00:00 2001 From: Yash Karthik <52369876+YashKarthik@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:16:26 +0000 Subject: [PATCH] fix: fix types for playground page --- web/components/templates/playground/playgroundPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/templates/playground/playgroundPage.tsx b/web/components/templates/playground/playgroundPage.tsx index fe79a0dc8f..6f5eed17e6 100644 --- a/web/components/templates/playground/playgroundPage.tsx +++ b/web/components/templates/playground/playgroundPage.tsx @@ -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"; @@ -104,7 +105,7 @@ const PlaygroundPage = (props: PlaygroundPageProps) => { }, [tools, requestId]); useEffect(() => { - fetchFineTuneModels(providerAPIKey, setPLAYGROUND_MODELS); + fetchFineTuneModels(providerAPIKey, setPlaygroundModels); }, [providerAPIKey]); const [newPlaygroundOpen, setNewPlaygroundOpen] = useLocalStorage( @@ -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 = {