chore: wip

This commit is contained in:
DDMeaqua
2024-08-27 17:02:44 +08:00
parent 2f410fc09f
commit 93f1762e6c
8 changed files with 55 additions and 0 deletions

View File

@@ -53,6 +53,13 @@ export class SparkApi implements LLMApi {
return res.choices?.at(0)?.message?.content ?? "";
}
speech(options: SpeechOptions): Promise<ArrayBuffer> {
throw new Error("Method not implemented.");
}
transcription(options: TranscriptionOptions): Promise<string> {
throw new Error("Method not implemented.");
}
async chat(options: ChatOptions) {
const messages: ChatOptions["messages"] = [];
for (const v of options.messages) {