fixes tests

This commit is contained in:
geoffsee
2025-06-09 23:17:00 -04:00
committed by Geoff Seemueller
parent 362f50bf85
commit 0c999e0400
7 changed files with 52 additions and 67 deletions

View File

@@ -88,7 +88,7 @@ export class ChatSdk {
});
}
static buildMessageChain(
static async buildMessageChain(
messages: any[],
opts: {
systemPrompt: any;
@@ -98,7 +98,7 @@ export class ChatSdk {
env: Env;
},
) {
const modelFamily = ProviderRepository.getModelFamily(opts.model, opts.env)
const modelFamily = await ProviderRepository.getModelFamily(opts.model, opts.env)
const messagesToSend = [];