@budibase/pro 3.2.22 → 3.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,6 @@ import { OpenAIModel, AnthropicModel } from "./models";
|
|
|
4
4
|
type ModelIdentifier = OpenAIModel | AnthropicModel;
|
|
5
5
|
export declare class LargeLanguageModel {
|
|
6
6
|
llm?: ILargeLanguageModel;
|
|
7
|
-
initialised?: boolean;
|
|
8
7
|
model: ModelIdentifier;
|
|
9
8
|
static forCurrentTenant(model: ModelIdentifier): Promise<LargeLanguageModel>;
|
|
10
9
|
private constructor();
|
package/dist/index.js
CHANGED
|
@@ -10935,7 +10935,7 @@ var LargeLanguageModel = class _LargeLanguageModel {
|
|
|
10935
10935
|
let aiConfig = await import_backend_core47.configs.getAIConfig();
|
|
10936
10936
|
const bbAIEnabled = await isBudibaseAIEnabled();
|
|
10937
10937
|
if (!aiConfig && !bbAIEnabled) {
|
|
10938
|
-
|
|
10938
|
+
return;
|
|
10939
10939
|
}
|
|
10940
10940
|
if (!aiConfig) {
|
|
10941
10941
|
aiConfig = { config: {} };
|
|
@@ -10943,7 +10943,6 @@ var LargeLanguageModel = class _LargeLanguageModel {
|
|
|
10943
10943
|
const enriched = await enrichAIConfig(aiConfig);
|
|
10944
10944
|
const selectedConfig = this.determineDefault(enriched.config);
|
|
10945
10945
|
if (!selectedConfig) {
|
|
10946
|
-
this.initialised = false;
|
|
10947
10946
|
return;
|
|
10948
10947
|
}
|
|
10949
10948
|
const llmConfigOptions = {
|
|
@@ -10957,7 +10956,6 @@ var LargeLanguageModel = class _LargeLanguageModel {
|
|
|
10957
10956
|
throw Error("LLM Initialisation failed. No model configured.");
|
|
10958
10957
|
}
|
|
10959
10958
|
this.llm = llm;
|
|
10960
|
-
this.initialised = true;
|
|
10961
10959
|
}
|
|
10962
10960
|
buildPromptFromAIOperation({
|
|
10963
10961
|
schema,
|