修改: 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 {
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<LLMUsage> {
throw new Error("Method not implemented.");
async usage() {
return {
used: 0,
total: 0,
};
}
models(): Promise<LLMModel[]> {
throw new Error("Method not implemented.");
async models() {
return [];
}
}