adjust instantiation of llm class after static initialiser change
This commit is contained in:
parent
b45017dd5a
commit
876d837c33
|
@ -1 +1 @@
|
|||
Subproject commit 5929fbb3c69b46c525faef4a5a805e0a0015bd8e
|
||||
Subproject commit 922431260e90d558a1ca55398475412e75088057
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue