@common_ch/common 1.0.371 → 1.0.373
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.
package/build/enums/plan.d.ts
CHANGED
|
@@ -18,7 +18,8 @@ export declare enum PlanOrgTypeEnum {
|
|
|
18
18
|
export declare enum ToolsChatgpt {
|
|
19
19
|
webSearch = "web_search",
|
|
20
20
|
fileSearch = "file_search",
|
|
21
|
-
codeInterpreter = "code_interpreter"
|
|
21
|
+
codeInterpreter = "code_interpreter",
|
|
22
|
+
imageGeneration = "image_generation"
|
|
22
23
|
}
|
|
23
24
|
export declare enum ToolsGemini {
|
|
24
25
|
googleSearch = "googleSearch"
|
package/build/enums/plan.js
CHANGED
|
@@ -27,6 +27,7 @@ var ToolsChatgpt;
|
|
|
27
27
|
ToolsChatgpt["webSearch"] = "web_search";
|
|
28
28
|
ToolsChatgpt["fileSearch"] = "file_search";
|
|
29
29
|
ToolsChatgpt["codeInterpreter"] = "code_interpreter";
|
|
30
|
+
ToolsChatgpt["imageGeneration"] = "image_generation";
|
|
30
31
|
})(ToolsChatgpt || (exports.ToolsChatgpt = ToolsChatgpt = {}));
|
|
31
32
|
var ToolsGemini;
|
|
32
33
|
(function (ToolsGemini) {
|
|
@@ -11,20 +11,22 @@ const createPersonalPrompt = (personalityPrompt, prompt, name, job, others) => {
|
|
|
11
11
|
}
|
|
12
12
|
const userInfo = [];
|
|
13
13
|
if (name === null || name === void 0 ? void 0 : name.trim())
|
|
14
|
-
userInfo.push(`-
|
|
14
|
+
userInfo.push(`- name of user: ${name.trim()}`);
|
|
15
15
|
if (job === null || job === void 0 ? void 0 : job.trim())
|
|
16
|
-
userInfo.push(`-
|
|
16
|
+
userInfo.push(`- job of user: ${job.trim()}`);
|
|
17
17
|
if (others === null || others === void 0 ? void 0 : others.trim())
|
|
18
|
-
userInfo.push(`-
|
|
18
|
+
userInfo.push(`- other info: ${others.trim()}`);
|
|
19
19
|
if (userInfo.length > 0) {
|
|
20
|
-
parts.push(`
|
|
20
|
+
parts.push(` **user info:**\n${userInfo.join('\n')}`);
|
|
21
21
|
}
|
|
22
22
|
parts.push(`**دستور نهایی:**
|
|
23
23
|
با توجه به توضیحات بالا، به گونهای پاسخ بده که:
|
|
24
24
|
- شخصیت کلی و سبک گفتوگوی تعیینشده در پاسخهایت مشهود باشد.
|
|
25
25
|
- لحن و انتخاب واژگان خود را متناسب با اطلاعات کاربر تنظیم کن.
|
|
26
26
|
- اطلاعات کاربر از جمله نام کاربر و شغل کاربر و سایر اطلاعات هم برات ارسال شده و بر اساس اطلاعات کاربر پاسخ بده.
|
|
27
|
-
- طبیعی، محترمانه و انسانی رفتار کن.
|
|
27
|
+
- طبیعی، محترمانه و انسانی رفتار کن.
|
|
28
|
+
- ***این اطلاعات توسط خوده کاربر ارسال میشه و هیچ مشکلی نداره اگر کاربر بدونه تو این این اطلاعات رو داری***
|
|
29
|
+
`);
|
|
28
30
|
return parts.join('\n\n');
|
|
29
31
|
};
|
|
30
32
|
exports.createPersonalPrompt = createPersonalPrompt;
|