@taskmagic/piece-afforai
Advanced tools
Comparing version 1.0.1 to 12.0.3
{ | ||
"name": "@taskmagic/piece-afforai", | ||
"version": "1.0.1", | ||
"version": "12.0.3", | ||
"dependencies": { | ||
"@sinclair/typebox": "0.26.8", | ||
"axios": "^1.6.0", | ||
"axios": "1.6.7", | ||
"dayjs": "1.11.9", | ||
@@ -11,7 +11,7 @@ "is-base64": "1.1.0", | ||
"nanoid": "3.3.6", | ||
"semver": "7.5.4", | ||
"@taskmagic/pieces-common": "1.0.8", | ||
"@taskmagic/pieces-framework": "1.0.8", | ||
"@taskmagic/shared": "0.10.33", | ||
"tslib": "2.6.1" | ||
"semver": "7.6.0", | ||
"@activepieces/pieces-common": "0.2.13", | ||
"@activepieces/pieces-framework": "0.7.31", | ||
"@activepieces/shared": "0.10.106", | ||
"tslib": "1.14.1" | ||
}, | ||
@@ -18,0 +18,0 @@ "main": "./src/index.js", |
@@ -1,2 +0,2 @@ | ||
export declare const afforaiAuth: import("@taskmagic/pieces-framework").SecretTextProperty<true>; | ||
export declare const afforai: import("@taskmagic/pieces-framework").Piece<import("@taskmagic/pieces-framework").SecretTextProperty<true>>; | ||
export declare const afforaiAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>; | ||
export declare const afforai: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.afforai = exports.afforaiAuth = void 0; | ||
const pieces_framework_1 = require("@taskmagic/pieces-framework"); | ||
const pieces_framework_1 = require("@activepieces/pieces-framework"); | ||
const ask_chatbot_1 = require("./lib/actions/ask-chatbot"); | ||
const shared_1 = require("@taskmagic/shared"); | ||
const shared_1 = require("@activepieces/shared"); | ||
exports.afforaiAuth = pieces_framework_1.PieceAuth.SecretText({ | ||
@@ -24,3 +24,3 @@ displayName: 'API Key', | ||
categories: [shared_1.PieceCategory.ARTIFICIAL_INTELLIGENCE], | ||
authors: ['kishanprmr', 'abuaboud'], | ||
authors: ["kishanprmr", "abuaboud"], | ||
actions: [ask_chatbot_1.askChatbotAction], | ||
@@ -27,0 +27,0 @@ triggers: [], |
@@ -1,6 +0,6 @@ | ||
export declare const askChatbotAction: import("@taskmagic/pieces-framework").IAction<import("@taskmagic/pieces-framework").SecretTextProperty<true>, { | ||
sessionID: import("@taskmagic/pieces-framework").ShortTextProperty<true>; | ||
history: import("@taskmagic/pieces-framework").ArrayProperty<true>; | ||
powerful: import("@taskmagic/pieces-framework").CheckboxProperty<true>; | ||
google: import("@taskmagic/pieces-framework").CheckboxProperty<true>; | ||
export declare const askChatbotAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, { | ||
sessionID: import("@activepieces/pieces-framework").ShortTextProperty<true>; | ||
history: import("@activepieces/pieces-framework").ArrayProperty<true>; | ||
powerful: import("@activepieces/pieces-framework").CheckboxProperty<true>; | ||
google: import("@activepieces/pieces-framework").CheckboxProperty<true>; | ||
}>; |
@@ -6,4 +6,4 @@ "use strict"; | ||
const __1 = require("../../"); | ||
const pieces_framework_1 = require("@taskmagic/pieces-framework"); | ||
const pieces_common_1 = require("@taskmagic/pieces-common"); | ||
const pieces_framework_1 = require("@activepieces/pieces-framework"); | ||
const pieces_common_1 = require("@activepieces/pieces-common"); | ||
exports.askChatbotAction = (0, pieces_framework_1.createAction)({ | ||
@@ -60,7 +60,4 @@ auth: __1.afforaiAuth, | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const { sessionID, google, powerful } = context.propsValue; | ||
const { sessionID, powerful, google } = context.propsValue; | ||
const history = context.propsValue.history; | ||
const newHistory = history === null || history === void 0 ? void 0 : history.map((e) => { | ||
return { role: 'user', content: e }; | ||
}); | ||
const request = { | ||
@@ -72,3 +69,3 @@ method: pieces_common_1.HttpMethod.POST, | ||
sessionID: sessionID, | ||
history: newHistory, | ||
history: history, | ||
powerful: powerful, | ||
@@ -75,0 +72,0 @@ google: google, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7888
111
+ Added@activepieces/pieces-common@0.2.13(transitive)
+ Added@activepieces/pieces-framework@0.7.300.7.31(transitive)
+ Added@activepieces/shared@0.10.1040.10.1050.10.106(transitive)
+ Addedaxios@1.6.7(transitive)
+ Addedsemver@7.6.0(transitive)
- Removed@taskmagic/pieces-common@1.0.8
- Removed@taskmagic/pieces-framework@1.0.8
- Removed@taskmagic/shared@0.10.33
- Removed@taskmagic/pieces-common@1.0.8(transitive)
- Removed@taskmagic/pieces-framework@1.0.71.0.8(transitive)
- Removed@taskmagic/shared@0.10.300.10.33(transitive)
- Removedaxios@1.7.9(transitive)
- Removedsemver@7.5.4(transitive)
- Removedtslib@2.6.12.6.2(transitive)
Updatedaxios@1.6.7
Updatedsemver@7.6.0
Updatedtslib@1.14.1