From 3fb809d9dfab638d02ea5bad8ff5fc6ff8933057 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sat, 27 Apr 2024 12:04:50 -0700 Subject: [PATCH] chore(ui): switch to /v1/chat/completions --- ee/tabby-ui/lib/hooks/use-patch-fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/tabby-ui/lib/hooks/use-patch-fetch.ts b/ee/tabby-ui/lib/hooks/use-patch-fetch.ts index 8dccd8555d70..e80a60c3efcd 100644 --- a/ee/tabby-ui/lib/hooks/use-patch-fetch.ts +++ b/ee/tabby-ui/lib/hooks/use-patch-fetch.ts @@ -27,7 +27,7 @@ export function usePatchFetch(options?: PatchFetchOptions) { 'Content-Type': 'application/json' } - const res = await fetcher(`/v1beta/chat/completions`, { + const res = await fetcher(`/v1/chat/completions`, { ...requestInit, body: mergeMessagesByRole(requestInit?.body), method: 'POST',