diff --git a/app/src/app/api/v0/chat/route.ts b/app/src/app/api/v0/chat/route.ts index 92d7d6178..b66cf71f4 100644 --- a/app/src/app/api/v0/chat/route.ts +++ b/app/src/app/api/v0/chat/route.ts @@ -6,7 +6,7 @@ import OpenAI from "openai"; import { ChatCompletionMessageParam } from "openai/resources/chat/completions"; import { apiHandler } from "@/util/api"; -let Hf, openai; +let Hf: HfInference, openai: OpenAI; function setupModels() { if (!Hf) {