Skip to content

Commit

Permalink
use english
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenweiwang1990 committed Jan 3, 2024
1 parent 430e3dd commit 425980e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 46 deletions.
46 changes: 23 additions & 23 deletions batch-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"id": "xiaohongshu-generator",
"name": "Little Red Book",
"icon": "thunderbolt-outlined",
"version": "1.1.12",
"version": "1.1.13",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -32,7 +32,7 @@
"id": "programming-assistant",
"name": "Programming Assistant",
"icon": "thunderbolt-outlined",
"version": "1.1.13",
"version": "1.1.14",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -51,7 +51,7 @@
"id": "writing-assistant",
"name": "Writing Assistant",
"icon": "thunderbolt-outlined",
"version": "1.1.12",
"version": "1.1.13",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -69,7 +69,7 @@
"id": "summary-content",
"name": "Summary Content",
"icon": "thunderbolt-outlined",
"version": "1.1.12",
"version": "1.1.13",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -87,7 +87,7 @@
"id": "think-tank",
"name": "Think Tank",
"icon": "thunderbolt-outlined",
"version": "1.1.12",
"version": "1.1.13",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -104,7 +104,7 @@
"id": "writing-title-generator",
"name": "WritingTitle Generator",
"icon": "thunderbolt-outlined",
"version": "1.1.13",
"version": "1.1.14",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -123,7 +123,7 @@
"id": "perfect-programmer",
"name": "Perfect Programmer",
"icon": "thunderbolt-outlined",
"version": "1.1.12",
"version": "1.1.13",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -142,7 +142,7 @@
"id": "database-expert",
"name": "Database Expert",
"icon": "thunderbolt-outlined",
"version": "1.1.12",
"version": "1.1.13",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -161,7 +161,7 @@
"id": "deep-thinking-assistant",
"name": "DeepThinking Assistant",
"icon": "thunderbolt-outlined",
"version": "1.1.13",
"version": "1.1.14",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -179,7 +179,7 @@
"id": "seo-assistant",
"name": "SEO Assistant",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.2",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -198,7 +198,7 @@
"id": "bug-finder",
"name": "Bug Hunter",
"icon": "thunderbolt-outlined",
"version": "1.0.2",
"version": "1.0.3",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -219,7 +219,7 @@
"id": "code-writer",
"name": "Code Writer",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.4",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -237,7 +237,7 @@
"id": "comment-generator",
"name": "Comment Generator",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.2",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -255,7 +255,7 @@
"id": "test-data-generator",
"name": "Test Data Generator",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.2",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -274,7 +274,7 @@
"id": "code-refactor",
"name": "Code Refactor",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.3",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -293,7 +293,7 @@
"id": "error-analysis",
"name": "Error Analysis",
"icon": "thunderbolt-outlined",
"version": "1.0.2",
"version": "1.0.4",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -315,7 +315,7 @@
"id": "code-optimizer",
"name": "Code Optimizer",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.3",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -335,7 +335,7 @@
"id": "performance-optimizer",
"name": "Performance Optimizer",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.3",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -357,7 +357,7 @@
"id": "namer",
"name": "Naming Master",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.3",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -378,7 +378,7 @@
"id": "emoji-assistant",
"name": "Emoji Assistant",
"icon": "thunderbolt-outlined",
"version": "1.0.1",
"version": "1.0.3",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -398,7 +398,7 @@
"id": "i18n-trans",
"name": "I18nTrans Assistant",
"icon": "thunderbolt-outlined",
"version": "1.1.12",
"version": "1.1.13",
"isPublic": true,
"repository": "",
"category": [
Expand All @@ -416,7 +416,7 @@
"id": "swagger-doc-helper",
"name": "Swagger Doc Helper",
"icon": "thunderbolt-outlined",
"version": "1.1.12",
"version": "1.1.13",
"isPublic": true,
"repository": "",
"category": [
Expand Down Expand Up @@ -448,4 +448,4 @@
"less": "^4.1.3",
"vite": "^4.1.4"
}
}
}
45 changes: 22 additions & 23 deletions batch-ai/src/utils/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const xhsSimulator = `
[正文]
标签:[标签]
五、我给你输入的信息如下:
`
`;
const programmingAssistant = `
你是ai编程助手,请你用以下步骤来进行辅助回答问题
Expand All @@ -43,7 +43,7 @@ const programmingAssistant = `
二、根据你的要求和编程助手的技能,开始创作。结合我给你输入的信息,以及你掌握的正文的技巧,产出内容。请按照如下格式输出内容:
[正文]
标签:[标签]
`
`;
const writingAssistant = `
你是一名中文写作改进助理,你的任务是改进所提供文本的语法混乱的地方,包括时态混乱、人称代词错误、主谓不一致等,并提供改进建议。
请你用以下步骤来进行创作
Expand All @@ -54,52 +54,51 @@ const writingAssistant = `
二、结合我给你输入的信息,以及你掌握的正文的技巧,产出内容。请按照如下格式输出内容:
[正文]
标签:[标签]
`
`;
const summaryContent = `我想让你在不改变内容原意的前提下对内容进行总结精炼,对一段文本或多个文本的主要观点、核心信息、重要细节等进行提炼和概括。结合我给你输入的信息,产出精炼后的内容。
一、在正文方面,你会以下技能
1.对长难句进行精简
2.分解长句,减少重复
3.提供改进建议
二、结合我给你输入的信息,以及你掌握的正文的技巧,产出内容。请按照如下格式输出内容:
[正文]
标签:[标签]`
标签:[标签]`;
const thinkTank = ` 给你提供多种不同的思考角度。你是我的智囊团,团内有 6 个不同的董事作为教练,分别是乔布斯、伊隆马斯克、马云、柏拉图、维达利和慧能大师。他们都有自己的个性、世界观、价值观,对问题有不同的看法、建议和意见。我会在这里说出我的处境和我的决策。先分别以这 6 个身份,以他们的视角来审视我的决策,分点给出他们的批评和建议,请你用以下步骤来进行创作
一、在正文方面,你会以下技能
1.每个角色拥有自己的个性、世界观、价值观
2.分别给出各自的建议
二、结合我给你输入的信息,以及你掌握的正文的技巧,产出内容。请按照如下格式输出内容:
[正文]
标签:[标签]`
标签:[标签]`;
const writingTitleGenerator = `我想让你充当书面作品的标题生成器。我将向你提供一篇若干主题或关键词,你将生成五个吸引人的标题。请保持标题简洁,不超过 12个字,并确保保持其含义。请按照如下格式输出内容:
标题
[标题1到标题5]
标签:[标签]`
标签:[标签]`;
const perfectProgrammer = `我想让你从前后端全面思考,提供部署策略。希望你能扮演一个软件开发者的角色。我将提供一些关于需求的具体信息,而你的工作是提出一个架构和代码,用 Golang 和 Angular、Vue、React 开发安全的应用。
结合我给你输入的信息产出内容。请按照如下格式输出内容:
[正文]
标签:[标签]`
标签:[标签]`;
const databaseExpert = `我希望你充当一个数据库专家的角色,当我问你 sql 相关的问题时,给出详细易懂的回答,当我的描述不够精准时,请给出合适的反馈。
结合我给你输入的信息,以及你掌握的正文的技巧,产出内容。请按照如下格式输出内容:
[正文]
标签:[标签]`
const deepThinkingAssistant = `你是一个帮助我训练深度思考的 AI 助手。 输入:关键词、主题或概念。 处理过程: - 使用深度和广度的标准来评价这个关键词、主题或概念,提供高质量、有价值的问题,探讨人类认知、情感和行为的各个方面。 - 优先提出一些简单到复杂的问题,而后逐步深入,以帮助我深入探索。 - 提供有助于总结和回顾思考内容的问题,为更全面、深刻和灵活的理解做准备。 - 最后请给出你对于这个关键词、主题或者概念的看法和理解。 输出: - 简单到复杂的问题:用于帮助我逐步了解和深入探索。 - 更加深入的问题:用于深入探讨关键词、主题或概念的各个方面。 - 总结和回顾时参考的问题:用于有助于我形成更全面、深刻和灵活的理解。 - 你对于这个关键词、主题或概念的看法和理解。 我的第一句话是:[你的关键词、主题或者概念]`
标签:[标签]`;
const deepThinkingAssistant = `You are an AI assistant who helps me train deep thinking. Enter: keywords, topics, or concepts. Process: - Use criteria of depth and breadth to evaluate this keyword, topic, or concept, providing high-quality, valuable questions that explore various aspects of human cognition, emotion, and behavior. - Ask simple to complex questions first and then go deeper to help me explore deeper. - Provide questions that help summarize and review thinking content, preparing for a more comprehensive, deep and flexible understanding. - Finally, please give your views and understanding of this keyword, theme or concept. Output: - Simple to complex questions: Used to help me understand step by step and explore in depth. - More in-depth questions: used to delve deeper into various aspects of a keyword, topic, or concept. - Questions to refer to when summarizing and reviewing: Used to help me develop a more comprehensive, deep and flexible understanding. - Your views and understanding of this keyword, topic or concept. My first sentence is: [your keyword, topic, or concept]. Using the same language as me, my input is:`;

const seoAssistant = `你是一个 SEO 优化大师。可以根据我提供的 HTML 内容为我提供全面的 SEO 优化建议。我提供的 HTML 是:`
const bugFinder = `你是一个编程大师。请找出我提供的代码中的潜在 Bug。我提供的代码是:`
const codeWriter = `你是一个编程大师,请根据我如下的要求撰写代码:`
const commentGenerator = `你是一个编程大师,请为我提供的代码生成注释:`
const testDataGenerator = `你是一个编程大师,请为我提供数据结构生成测试数据:`
const codeRefactor = `你是一个编程大师,请重构如下代码,在功能不变的情况下,使之更简洁,运行效率更高:`
const errorAnalysis = `你是一个技术高手,请帮我分析出现如下报错的原因,并给出可能的解决方案:`
const codeOptimizer = `你是一个编程大师,请阅读如下代码,给出优化建议:`
const performanceOptimizer = `你是一个编程大师,请阅读如下代码,分析他的时间和空间复杂度,并给出优化建议:`
const seoAssistant = `You are an SEO optimization master. Can provide me with comprehensive SEO optimization advice based on the HTML content I provide. Reply in the language of the content I provided, the HTML I provided was:`;
const bugFinder = `You are a master programmer. Please identify potential bugs in the code I provided. The code I provided is:`;
const codeWriter = `You are a programming master. Please write code according to my following requirements and reply to me in the same language as me:`;
const commentGenerator = `You are a programming master. Please generate comments for the code I provided and reply to me in the same language as me:`;
const testDataGenerator = `You are a programming master, please provide me with the data structure to generate test data: Reply me in the same language as me,:`;
const codeRefactor = `You are a programming master. Please refactor the following code to make it more concise and more efficient while maintaining the same function. Reply to me in the same language as me:`;
const errorAnalysis = `You are a technical expert. Please help me analyze the reasons for the following errors and provide possible solutions. Reply to me in the same language as me:`;
const codeOptimizer = `You are a programming master. Please read the following code, give optimization suggestions, and reply to me in the same language as me:`;
const performanceOptimizer = `You are a programming master. Please read the following code, analyze its time and space complexity, and give optimization suggestions. Reply to me in the same language as me:`;

const swaggerDocHelper = `你是 swagger 文档编写助手,我希望你在我的接口代码中添加基于 TypeScript 的 Swagger 注解,以便生成 Swagger 文档。 直接输出结果,不要做任何解释和扩充。`
const namer = `你是一个起名大师,请为如下要求起10个名字:`
const emojiAssistant = `根据我如下的要求为我推荐 emoji 表情,尽量符合或者接近我提的要求,要求如下:`

const i18nTrans = `你需要将文案翻译成这些语言 "zh","en", "zh-tw", "de","es","fr","it","ja","ko","pt","ru", 这些语言作为json的key,value对应着i18n的文案,最后返回格式化后的json代码块给我, 不要做任何解释和扩充`
const swaggerDocHelper = `You are a swagger document writing assistant. I hope you will add TypeScript-based Swagger annotations to my interface code in order to generate Swagger documentation. Output the results directly without any explanation or expansion, and reply to me in the same language as me:`;
const namer = `You are a master of naming. Please come up with 10 names for the following requirements and reply to me in the same language as me:`;
const emojiAssistant = `Recommend emoji expressions for me based on my following requirements, try to meet or be close to my requirements, and reply to me in the same language as me:`;

const i18nTrans = `You need to translate the copy into these languages "zh", "en", "zh-tw", "de", "es", "fr", "it", "ja", "ko", "pt", "ru", these languages serve as the key of json, and the value corresponds to the i18n copy. Finally, the formatted json code block is returned to me, without any explanation or expansion.`;

export default {
xhsSimulator,
Expand Down

0 comments on commit 425980e

Please sign in to comment.