修改: app/client/platforms/bedrock.ts

This commit is contained in:
glay 2024-11-05 17:32:52 +08:00
parent 58837f6dec
commit f532731e2a

View File

@ -1,12 +1,5 @@
import { ApiPath } from "../../constant"; import { ApiPath } from "../../constant";
import { import { ChatOptions, getHeaders, LLMApi, SpeechOptions } from "../api";
ChatOptions,
getHeaders,
LLMApi,
LLMModel,
LLMUsage,
SpeechOptions,
} from "../api";
import { import {
useAppConfig, useAppConfig,
usePluginStore, usePluginStore,
@ -289,10 +282,13 @@ export class BedrockApi implements LLMApi {
} }
} }
} }
usage(): Promise<LLMUsage> { async usage() {
throw new Error("Method not implemented."); return {
used: 0,
total: 0,
};
} }
models(): Promise<LLMModel[]> { async models() {
throw new Error("Method not implemented."); return [];
} }
} }