1
0
Fork 0
mirror of synced 2024-09-24 13:21:53 +12:00

adjust instantiation of llm class after static initialiser change

This commit is contained in:
Martin McKeaveney 2024-09-20 14:58:10 +01:00
parent b45017dd5a
commit 876d837c33
2 changed files with 2 additions and 3 deletions

@ -1 +1 @@
Subproject commit 5929fbb3c69b46c525faef4a5a805e0a0015bd8e
Subproject commit 922431260e90d558a1ca55398475412e75088057

View file

@ -103,8 +103,7 @@ export async function run({
const budibaseAIEnabled = await pro.features.isBudibaseAIEnabled()
if (budibaseAIEnabled || customConfigsEnabled) {
const llm = new pro.ai.LargeLanguageModel(inputs.model)
await llm.init()
const llm = await pro.ai.LargeLanguageModel.forCurrentTenant(inputs.model)
response = await llm.run(inputs.prompt)
} else {
// fallback to the default that uses the environment variable for backwards compat