From 5739c82cf342038afb22c982652cc075d2c21f70 Mon Sep 17 00:00:00 2001 From: Milan Gruner Date: Mon, 4 Mar 2024 11:07:29 +0100 Subject: [PATCH] Fix missing type definitions in chat route Signed-off-by: Milan Gruner --- app/src/app/api/v0/chat/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {