@saltcorn/large-language-model 0.4.0 → 0.4.2
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.
|
@@ -12,6 +12,8 @@ const noSpaces = (s) => s.replaceAll(" ", "");
|
|
|
12
12
|
module.exports = (config) => ({
|
|
13
13
|
description: "Use LLM function call to insert rows in tables",
|
|
14
14
|
requireRow: true,
|
|
15
|
+
disableInList: true,
|
|
16
|
+
disableInBuilder: true,
|
|
15
17
|
configFields: async ({ table }) => {
|
|
16
18
|
const tables = await Table.find();
|
|
17
19
|
return [
|
|
@@ -120,7 +122,7 @@ module.exports = (config) => ({
|
|
|
120
122
|
};
|
|
121
123
|
//console.log(JSON.stringify(expert_function, null, 2));
|
|
122
124
|
const compl = await getCompletion(config, { prompt, ...toolargs });
|
|
123
|
-
|
|
125
|
+
getState().log(6, `llm_function_call completion: ${JSON.stringify(compl)}`);
|
|
124
126
|
const response = JSON.parse(compl.tool_calls[0].function.arguments);
|
|
125
127
|
//console.log("response: ", JSON.stringify(response, null, 2));
|
|
126
128
|
for (const col of columns) {
|