From f532731e2a7bceb46809ca98d1a4de522358dc79 Mon Sep 17 00:00:00 2001 From: glay Date: Tue, 5 Nov 2024 17:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=09=E4=BF=AE=E6=94=B9=EF=BC=9A=20=20=20=20=20ap?= =?UTF-8?q?p/client/platforms/bedrock.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/client/platforms/bedrock.ts | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/app/client/platforms/bedrock.ts b/app/client/platforms/bedrock.ts index a2324b818..130b30d31 100644 --- a/app/client/platforms/bedrock.ts +++ b/app/client/platforms/bedrock.ts @@ -1,12 +1,5 @@ import { ApiPath } from "../../constant"; -import { - ChatOptions, - getHeaders, - LLMApi, - LLMModel, - LLMUsage, - SpeechOptions, -} from "../api"; +import { ChatOptions, getHeaders, LLMApi, SpeechOptions } from "../api"; import { useAppConfig, usePluginStore, @@ -289,10 +282,13 @@ export class BedrockApi implements LLMApi { } } } - usage(): Promise { - throw new Error("Method not implemented."); + async usage() { + return { + used: 0, + total: 0, + }; } - models(): Promise { - throw new Error("Method not implemented."); + async models() { + return []; } }