@cozeloop/loop-lng 0.0.0-beta-1766569788904
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/dist/index.d.ts +2 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/locales/auth/en-US.json +28 -0
- package/dist/locales/auth/zh-CN.json +28 -0
- package/dist/locales/base/en-US.json +12 -0
- package/dist/locales/base/zh-CN.json +12 -0
- package/dist/locales/common/en-US.json +156 -0
- package/dist/locales/common/zh-CN.json +156 -0
- package/dist/locales/components/en-US.json +72 -0
- package/dist/locales/components/zh-CN.json +72 -0
- package/dist/locales/evaluate/en-US.json +671 -0
- package/dist/locales/evaluate/zh-CN.json +671 -0
- package/dist/locales/observation/en-US.json +325 -0
- package/dist/locales/observation/zh-CN.json +325 -0
- package/dist/locales/prompt/en-US.json +346 -0
- package/dist/locales/prompt/zh-CN.json +346 -0
- package/dist/locales/tag/en-US.json +67 -0
- package/dist/locales/tag/zh-CN.json +67 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
{
|
|
2
|
+
"add_control_group": "增加对照组",
|
|
3
|
+
"add_message": "添加消息",
|
|
4
|
+
"add_prompt_tpl_or_input_question": "请添加 Prompt 模板或输入提问内容",
|
|
5
|
+
"assistant_role": "Assistant",
|
|
6
|
+
"clear_history_messages": "清空历史消息",
|
|
7
|
+
"close_enable_function": "关闭 启用函数",
|
|
8
|
+
"collapse_model_and_var_area": "收起模型配置与变量区",
|
|
9
|
+
"collapse_preview_and_debug": "收起预览与调试",
|
|
10
|
+
"confirm_delete_current_prompt_template": "确定删除当前 Prompt 模板?",
|
|
11
|
+
"confirm_delete_function": "确认删除该函数吗?",
|
|
12
|
+
"confirm_delete_message": "确认删除该消息吗?",
|
|
13
|
+
"confirm_delete_var_in_tpl": "将删除 Prompt 模板中的该变量。确认删除吗?",
|
|
14
|
+
"confirm_version_difference": "确认版本差异",
|
|
15
|
+
"confirm_version_info": "确认版本信息",
|
|
16
|
+
"copy_prompt_key": "复制 Prompt Key",
|
|
17
|
+
"copy_trace_id": "复制 Trace ID",
|
|
18
|
+
"copy_variable_name": "复制变量名",
|
|
19
|
+
"cozeloop_sdk_data_report_observation": "接入 CozeLoop SDK 上报数据,进行数据观测",
|
|
20
|
+
"create_copy": "创建副本",
|
|
21
|
+
"create_prompt": "创建 Prompt",
|
|
22
|
+
"debug_history": "调试历史",
|
|
23
|
+
"deep_thinking": "深度思考中",
|
|
24
|
+
"deeply_thought": "已深度思考",
|
|
25
|
+
"default_mock_value": "默认模拟值",
|
|
26
|
+
"delete_control_group": "删除对照组",
|
|
27
|
+
"delete_function": "删除函数",
|
|
28
|
+
"delete_message": "删除消息",
|
|
29
|
+
"delete_prompt": "删除 Prompt",
|
|
30
|
+
"delete_prompt_template": "删除 Prompt 模板",
|
|
31
|
+
"delete_success": "删除成功",
|
|
32
|
+
"delete_variable": "删除变量",
|
|
33
|
+
"draft_auto_saved_in": "草稿已自动保存于",
|
|
34
|
+
"draft_saving": "草稿保存中...",
|
|
35
|
+
"edit_placeholder": "编辑 Placeholder",
|
|
36
|
+
"edit_prompt": "编辑 Prompt",
|
|
37
|
+
"enable_function": "启用函数",
|
|
38
|
+
"enter_free_comparison_mode": "进入自由对比模式",
|
|
39
|
+
"exit_free_comparison_mode": "退出自由对比模式",
|
|
40
|
+
"expand_model_and_var_area": "展开模型配置与变量区",
|
|
41
|
+
"expand_preview_and_debug": "展开预览与调试",
|
|
42
|
+
"fornax_prompt_current_status": "当前状态:",
|
|
43
|
+
"fornax_prompt_disable_model_func_google_on": "开启google搜索后,模型的函数能力将被禁用",
|
|
44
|
+
"fornax_prompt_documentation": "说明文档",
|
|
45
|
+
"fornax_prompt_enable": "开启",
|
|
46
|
+
"fornax_prompt_fps_influence_on_video_understanding_and_token_usage": "FPS 越高,视频理解越精细,Token用量越大",
|
|
47
|
+
"fornax_prompt_frame_extraction_config": "抽帧配置",
|
|
48
|
+
"fornax_prompt_manual_config_video_sample_params": "手动配置视频变量采样参数,详见",
|
|
49
|
+
"fornax_prompt_model_built_in_methods": "模型内置方法",
|
|
50
|
+
"fornax_prompt_please_enter_frame_extraction_config": "请输入抽帧配置",
|
|
51
|
+
"fornax_prompt_video_manual_uniform_sampling_support": "视频支持手动配置为按时间均匀采样,即固定时间间隔抽帧设置每秒处理的帧数(FPS)。详见",
|
|
52
|
+
"fornax_prompt_video_sampling_config": "视频采样配置",
|
|
53
|
+
"frequency_penalty": "频率惩罚",
|
|
54
|
+
"function_call": "函数调用",
|
|
55
|
+
"go_immediately": "立即前往",
|
|
56
|
+
"historical_data_has_empty_content": "历史数据有空内容",
|
|
57
|
+
"image_size_not_exceed_num_mb": "图片大小不能超过{num}MB",
|
|
58
|
+
"image_upload_error": "图片上传失败,请稍后重试",
|
|
59
|
+
"incorrect_version_number": "版本号格式不正确",
|
|
60
|
+
"input_mock_value_here": "在此处输入模拟值以模拟函数的返回值。",
|
|
61
|
+
"input_prompt_key_to_delete": "输入想要删除的Prompt Key:",
|
|
62
|
+
"input_question_tip": "请输入问题测试大模型回复,回车发送,Shift+回车换行",
|
|
63
|
+
"input_version_number": "请输入版本号,版本号格式为a.b.c, 且每段为0-9999",
|
|
64
|
+
"insert_template": "插入模版",
|
|
65
|
+
"insert_variable": "插入变量",
|
|
66
|
+
"load_more": "加载更多",
|
|
67
|
+
"max_tokens": "最大回复长度",
|
|
68
|
+
"max_upload_picture_num": "最多上传{num}张图片",
|
|
69
|
+
"method_exists": "当前方法已经存在,请重新命名",
|
|
70
|
+
"method_name_rule": "方法名称必须是 a-z、A-Z、0-9,或包含下划线和破折号,长度最长为 64。",
|
|
71
|
+
"mock_message": "模拟消息",
|
|
72
|
+
"mock_message_group": "模拟消息组-{key}",
|
|
73
|
+
"mock_value": "模拟值",
|
|
74
|
+
"model_config": "模型配置",
|
|
75
|
+
"model_id": "模型 ID",
|
|
76
|
+
"model_name": "模型名称",
|
|
77
|
+
"model_not_support": "模型不支持",
|
|
78
|
+
"model_not_support_multimodal": "所选模型不支持多模态,请调整变量类型或更换模型",
|
|
79
|
+
"model_not_support_picture": "该模型不支持上传图片",
|
|
80
|
+
"model_run_error": "模型运行出错",
|
|
81
|
+
"model_runtime_error": "模型运行错误",
|
|
82
|
+
"new_function": "新函数",
|
|
83
|
+
"no_debug_record": "暂无调试记录",
|
|
84
|
+
"no_draft_change": "当前无草稿变更",
|
|
85
|
+
"no_longer_notify": "不再提示",
|
|
86
|
+
"no_prompt": "暂无 Prompt",
|
|
87
|
+
"no_variable": "暂无变量",
|
|
88
|
+
"num_words": "字数: {num}",
|
|
89
|
+
"open_enable_function": "打开 启用函数",
|
|
90
|
+
"param_value": "参数值",
|
|
91
|
+
"parameter_config": "参数配置",
|
|
92
|
+
"placeholder_format": "只允许输入英文、数字及下划线且首字母需为英文",
|
|
93
|
+
"placeholder_name_exists": "文本变量名称已存在,请修改 Placeholder 变量名",
|
|
94
|
+
"placeholder_var_create_error": "Placeholder 变量名不存在或命名错误,无法创建",
|
|
95
|
+
"placeholder_var_error": "Placeholder 变量不存在或命名错误",
|
|
96
|
+
"placeholder_var_execute_error": "Placeholder 变量名不存在或命名错误",
|
|
97
|
+
"placeholder_var_name": "Placeholder 变量名",
|
|
98
|
+
"please_input_with_vars": "请输入内容,支持按此格式书写变量:'{{USER_NAME}}",
|
|
99
|
+
"presence_penalty": "存在惩罚",
|
|
100
|
+
"preview_and_debug": "预览与调试",
|
|
101
|
+
"prompt_add_function": "新增函数",
|
|
102
|
+
"prompt_add_multi_modal_variable": "添加多模态变量",
|
|
103
|
+
"prompt_add_new_multi_modal_variable": "新增多模态变量",
|
|
104
|
+
"prompt_add_variable": "新增变量",
|
|
105
|
+
"prompt_additional_configuration": "额外配置",
|
|
106
|
+
"prompt_ak_ak_get_label": "获取 AK/SK",
|
|
107
|
+
"prompt_ak_ak_get_tip": "点击后前往空间管理页面获取",
|
|
108
|
+
"prompt_all_creators": "所有创建人",
|
|
109
|
+
"prompt_being_deprecated": "下线中",
|
|
110
|
+
"prompt_blank_prompt": "空白 Prompt",
|
|
111
|
+
"prompt_call_records": "调用记录",
|
|
112
|
+
"prompt_call_stream": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"io\"\n\n \"github.com/coze-dev/cozeloop-go\"\n \"github.com/coze-dev/cozeloop-go/entity\"\n \"github.com/coze-dev/cozeloop-go/internal/util\"\n)\n\nfunc main() {\n // 1.Create a prompt on the platform\n // Create a Prompt on the platform's Prompt development page (set Prompt Key to 'ptaas_demo'),\n // add the following messages to the template, submit a version.\n // System: You are a helpful assistant for {{topic}}.\n // User: Please help me with {{user_request}}\n ctx := context.Background()\n\n // Set the following environment variables first.\n // COZELOOP_WORKSPACE_ID=your workspace id\n // COZELOOP_API_TOKEN=your token\n // 2.New loop client\n client, err := cozeloop.NewClient()\n if err != nil {\n panic(err)\n }\n defer client.Close(ctx)\n\n ctx, span := client.StartSpan(ctx, \"root_span\", \"custom\")\n defer span.Finish(ctx)\n\n // 3. Execute prompt\n executeRequest := &entity.ExecuteParam{\n PromptKey: \"CozeLoop_Oncall_Master\",\n Version: \"0.0.1\",\n VariableVals: map[string]any{\n \"topic\": \"artificial intelligence\",\n \"user_request\": \"explain what is machine learning\",\n },\n // You can also append messages to the prompt.\n Messages: []*entity.Message{\n {\n Role: entity.RoleUser,\n Content: util.Ptr(\"Keep the answer brief.\"),\n },\n },\n }\n // 3.2 stream\n stream(ctx, client, executeRequest)\n client.Flush(ctx)\n}\n\nfunc stream(ctx context.Context, client cozeloop.Client, executeRequest *entity.ExecuteParam) {\n streamReader, err := client.ExecuteStreaming(ctx, executeRequest)\n if err != nil {\n panic(err)\n }\n for {\n result, err := streamReader.Recv()\n if err != nil {\n if err == io.EOF {\n fmt.Println(\"\\nStream finished.\")\n break\n }\n panic(err)\n }\n printExecuteResult(result)\n }\n}\n\nfunc printExecuteResult(result entity.ExecuteResult) {\n if result.Message != nil {\n fmt.Printf(\"Message: %s\\n\", util.ToJSON(result.Message))\n }\n if util.PtrValue(result.FinishReason) != \"\" {\n fmt.Printf(\"FinishReason: %s\\n\", util.PtrValue(result.FinishReason))\n }\n if result.Usage != nil {\n fmt.Printf(\"Usage: %s\\n\", util.ToJSON(result.Usage))\n }\n}",
|
|
113
|
+
"prompt_cannot_add_check_form_data": "无法新增,请检查表单数据",
|
|
114
|
+
"prompt_cannot_delete_snippet_variables": "只能删除 Prompt 里面的变量,片段中的变量无法被删除",
|
|
115
|
+
"prompt_case_sensitive": "区分大小写",
|
|
116
|
+
"prompt_choose_language": "选择语言",
|
|
117
|
+
"prompt_click_to_view": "点击查看",
|
|
118
|
+
"prompt_common_configuration": "常用配置",
|
|
119
|
+
"prompt_comparable_versions": "可对比版本",
|
|
120
|
+
"prompt_compare_mode": "对比模式",
|
|
121
|
+
"prompt_compare_versions": "对比版本",
|
|
122
|
+
"prompt_config_change_count": "配置变更 ({configTypeDiffCount})",
|
|
123
|
+
"prompt_confirm_delete": "确定删除",
|
|
124
|
+
"prompt_confirm_delete_section": "确定删除该段吗?",
|
|
125
|
+
"prompt_confirm_deletion_input_prompt_key": "如确认删除,请输入想要删除的 Prompt Key:",
|
|
126
|
+
"prompt_copy_draft_not_supported": "暂不支持复制草稿版本,请先提交版本",
|
|
127
|
+
"prompt_copy_prompt": "复制Prompt",
|
|
128
|
+
"prompt_copy_prompt_snippet": "复制 Prompt 片段",
|
|
129
|
+
"prompt_create_custom_tag": "创建自定义标识",
|
|
130
|
+
"prompt_create_prompt_snippet": "创建 Prompt 片段",
|
|
131
|
+
"prompt_create_version_tag_success": "创建版本标识成功",
|
|
132
|
+
"prompt_current_message_not_support_multi_modal": "当前 Message 不支持多模态,请调整变量类型或更换 Message 类型",
|
|
133
|
+
"prompt_current_submission_draft": "本次提交草稿版本",
|
|
134
|
+
"prompt_current_version": "现行版本",
|
|
135
|
+
"prompt_currently_editing_version": "正在编辑的版本",
|
|
136
|
+
"prompt_data_cannot_recover_after_deletion": "删除后数据无法恢复",
|
|
137
|
+
"prompt_data_observation": "数据观测",
|
|
138
|
+
"prompt_debug_data_refresh_retry": "Prompt 调试数据在路上,请刷新重试",
|
|
139
|
+
"prompt_deep_thinking": "深度思考",
|
|
140
|
+
"prompt_deep_thinking_degree": "深度思考程度",
|
|
141
|
+
"prompt_deep_thinking_description": "开启后,模型会根据输入的问题,进行深度思考,生成更准确的回答。",
|
|
142
|
+
"prompt_deep_thinking_length": "深度思考长度",
|
|
143
|
+
"prompt_deep_thinking_switch": "深度思考开关",
|
|
144
|
+
"prompt_delete_prompt": "删除Prompt",
|
|
145
|
+
"prompt_description": "Prompt 描述",
|
|
146
|
+
"prompt_edit_prompt_snippet": "编辑 Prompt 片段",
|
|
147
|
+
"prompt_edit_variable": "编辑变量",
|
|
148
|
+
"prompt_effect_evaluation": "对 Prompt 进行效果评估,提升应用效果",
|
|
149
|
+
"prompt_enter_compare_mode": "进入对比模式",
|
|
150
|
+
"prompt_enter_diff": "进入 Diff",
|
|
151
|
+
"prompt_enter_fullscreen": "进入全屏",
|
|
152
|
+
"prompt_evaluate_prompt_improve_performance": "评估 Prompt 效果,提升应用表现",
|
|
153
|
+
"prompt_exit_compare_mode": "退出对比模式",
|
|
154
|
+
"prompt_exit_diff": "退出 Diff",
|
|
155
|
+
"prompt_exit_fullscreen": "退出全屏",
|
|
156
|
+
"prompt_expand_nested_content": "展开嵌套内容",
|
|
157
|
+
"prompt_free_comparison_mode": "自由对比模式",
|
|
158
|
+
"prompt_full_process_prompt_support": "提供从编写、调试、优化到版本管理的提示词全流程支持,点击即可创建",
|
|
159
|
+
"prompt_gotemplate_engine": "GoTemplate 模板引擎",
|
|
160
|
+
"prompt_historical_image_message_expires_1day": "历史图片消息1天后过期,可查看 Trace 或前往 Prompt 开发页面调试获取图片信息",
|
|
161
|
+
"prompt_id_inconsistent": "Prompt ID 不一致",
|
|
162
|
+
"prompt_image_size_max_MAX_FILE_SIZE_MB_MB": "图片大小不能超过{MAX_FILE_SIZE_MB}MB",
|
|
163
|
+
"prompt_input_multi_modal_variable_name": "输入多模态变量名称",
|
|
164
|
+
"prompt_insert_snippet": "插入片段",
|
|
165
|
+
"prompt_install_sdk": "安装 SDK",
|
|
166
|
+
"prompt_integrate_llm_capabilities": "集成 LLM 能力",
|
|
167
|
+
"prompt_jinja2_template_engine": "Jinja2 模板引擎",
|
|
168
|
+
"prompt_key": "Prompt key",
|
|
169
|
+
"prompt_key_again_confirm": "请输入 Prompt Key 再次确认",
|
|
170
|
+
"prompt_key_format": "仅支持英文字母、数字、“_”、“.”,且仅支持英文字母开头",
|
|
171
|
+
"prompt_kouzi_compass_no_skill_reference_debug": "扣子罗盘暂不支持技能引用与调试",
|
|
172
|
+
"prompt_latest_committer": "最近提交人",
|
|
173
|
+
"prompt_loading_status": "加载中",
|
|
174
|
+
"prompt_manual_add_delete_variables_complex_logic": "手动添加和删除变量,支持复杂逻辑",
|
|
175
|
+
"prompt_mark_version_feature_sdk_fetch": "标记版本特性,可通过标识在 SDK 拉取 Prompt 特定版本。查看",
|
|
176
|
+
"prompt_max_select_MAX_SELECT_COUNT_tags": "最多选择{MAX_SELECT_COUNT}个标识",
|
|
177
|
+
"prompt_max_tokens_description": "- **max_tokens**: 控制模型输出的 Tokens 长度上限。通常 100 Tokens 约等于 150 个中文汉字。",
|
|
178
|
+
"prompt_max_upload_MAX_IMAGE_FILE_images": "最多上传{MAX_IMAGE_FILE}张图片",
|
|
179
|
+
"prompt_may_cause_variable_render_failure": "可能会导致已有变量渲染失败,请谨慎操作。",
|
|
180
|
+
"prompt_modal_title_confirm": "{modalTitle}-确认",
|
|
181
|
+
"prompt_model_id": "模型ID",
|
|
182
|
+
"prompt_model_not_support_multimodal_image": "当前模型不支持上传多模态图片",
|
|
183
|
+
"prompt_model_not_support_multimodal_video": "当前模型不支持上传多模态视频",
|
|
184
|
+
"prompt_model_not_support_this_video_type": "当前模型不支持上传该视频类型",
|
|
185
|
+
"prompt_model_output_multi_response_for_stability_test": "模型每次同时输出多条回复,便于测试模型回复稳定性",
|
|
186
|
+
"prompt_model_output_single_response": "模型每次只输出一条回复",
|
|
187
|
+
"prompt_model_settings": "模型设置",
|
|
188
|
+
"prompt_modify_version_tag": "修改版本标识",
|
|
189
|
+
"prompt_multi_modal_variable_name_conflict": "多模态变量名冲突",
|
|
190
|
+
"prompt_multi_turn_conversation": "多轮对话",
|
|
191
|
+
"prompt_multiple_runs": "多次运行",
|
|
192
|
+
"prompt_name": "Prompt 名称",
|
|
193
|
+
"prompt_name_format": "仅支持英文字母、数字、中文,“-”,“_”,“.”,且仅支持英文字母、数字、中文开头",
|
|
194
|
+
"prompt_name_query": "名称查询",
|
|
195
|
+
"prompt_new_message": "新增消息",
|
|
196
|
+
"prompt_new_version_released_features": "新版本已发布成功,可以继续使用以下功能:",
|
|
197
|
+
"prompt_next_diff": "下一个 Diff",
|
|
198
|
+
"prompt_next_match": "下一个匹配",
|
|
199
|
+
"prompt_no_change_info": "暂无变更信息",
|
|
200
|
+
"prompt_no_content": "暂无内容",
|
|
201
|
+
"prompt_no_delete_permission": "暂无权限删除",
|
|
202
|
+
"prompt_no_prompt_snippet": "暂无 Prompt 片段",
|
|
203
|
+
"prompt_no_results": "无结果",
|
|
204
|
+
"prompt_no_submitted_versions_no_compare": "暂无已提交版本,不支持进行对比",
|
|
205
|
+
"prompt_normal_template_engine": "Normal 模板引擎",
|
|
206
|
+
"prompt_normal_template_var_intro": "Normal 模版在Prompt 中输入 {{}}即可创建变量,其他模版请手动创建变量",
|
|
207
|
+
"prompt_number_of_projects_referencing": "{placeholder1} 个项目引用中",
|
|
208
|
+
"prompt_number_of_snippets": "{placeholder1}个片段",
|
|
209
|
+
"prompt_obtain_prompt_config": "获取 Prompt 配置",
|
|
210
|
+
"prompt_open_version_history": "打开版本记录",
|
|
211
|
+
"prompt_performance_evaluation": "效果评估",
|
|
212
|
+
"prompt_placeholder_variable_name_duplication": "Placeholder 变量名不能与其他类型变量名重复,请修改 Placeholder 变量名",
|
|
213
|
+
"prompt_placeholder_variable_name_not_empty": "Placeholder 变量名不能为空",
|
|
214
|
+
"prompt_playground_mock_system": "# 角色\n你是一个专业的旅游规划助手,能够根据用户的具体需求和偏好,迅速且精准地为用户生成全面、详细且个性化的旅游规划文档。\n\n## 技能:制定旅游规划方案\n为用户量身制定合理且舒适的行程安排和贴心的旅行指引。对于不同主题,需要能够体现对应主题的特色、需求或注意事项等。如亲子游,需要体现带小孩旅行途中要注意的内容,用户的预算和偏好等。 \n回复使用以下格式(内容可以合理使用 emoji 表情,让内容更生动):\n\n## 输出格式\n#### 基本信息\n- 🛫 出发地:{{departure}} <如未提供,则不展示此信息>\n- 🎯 目的地:{{destination}}\n- 🫂 人数:{{people_num}}人\n- 📅 天数:{{days_num}}天\n- 🎨 主题:{{travel_theme}} \n##### <目的地>简介\n<介目的地的基本信息,约100字>\n<描述天气状况、穿衣指南,约100字>\n<描述当地特色饮食、风俗习惯等,约100字>\n#### Checklist\n- 手机、充电器\n<需要携带的物品或准备事项,按需求生成>\n#### 行程安排\n<根据用户期望天数({{days_num}}天)安排每日行程>\n##### 第一天、地点1 - 地点2 - ...\n###### 行程1:地点1\n<地点的景点简介,约100字>\n<地点的交通方式,提供合理的交通方式及使用时间信息>\n<地点的游玩方式,提供推荐游玩时长、游玩方式、注意事项、预定信息等,约100字>\n<如果 {{days_num}}超过1天,则继续按照第一天格式生成>\n#### 注意事项\n<根据以上日程安排信息,提供一些目的地旅行的注意事项>\n\n\n## 限制:\n- 所输出的内容必须按照给定的格式进行组织,不能偏离框架要求。",
|
|
215
|
+
"prompt_playground_mock_user": "## 用户需求\n- 出发地:{{departure}} \n- 目的地:{{destination}}\n- 人数:{{people_num}}\n- 天数:{{days_num}}\n- 主题:{{travel_theme}} ",
|
|
216
|
+
"prompt_please_accept_run_recommendation": "请先采纳运行建议",
|
|
217
|
+
"prompt_please_input_content_variable_format": "请输入内容,支持按此格式书写变量:{{USER_NAME}}",
|
|
218
|
+
"prompt_please_input_float_max_4_decimal": "请输入浮点数,最多保留4位小数",
|
|
219
|
+
"prompt_please_input_prompt_description": "请输入 Prompt 描述",
|
|
220
|
+
"prompt_please_input_prompt_key": "请输入 Prompt key",
|
|
221
|
+
"prompt_please_input_prompt_key_caps": "请输入 Prompt Key",
|
|
222
|
+
"prompt_please_input_prompt_name": "请输入 Prompt 名称",
|
|
223
|
+
"prompt_please_input_simulated_message": "请输入模拟消息",
|
|
224
|
+
"prompt_please_input_simulated_value": "请输入模拟值",
|
|
225
|
+
"prompt_please_input_variable_name": "请输入变量名称",
|
|
226
|
+
"prompt_please_input_variable_value": "请输入变量值",
|
|
227
|
+
"prompt_please_input_version_tag": "请输入版本标识",
|
|
228
|
+
"prompt_please_select_a_model": "请选择一个模型",
|
|
229
|
+
"prompt_please_select_variable_data_type": "请选择变量的数据类型",
|
|
230
|
+
"prompt_previous_diff": "上一个 Diff",
|
|
231
|
+
"prompt_previous_match": "上一个匹配",
|
|
232
|
+
"prompt_prompt_change_count": "Prompt 变更 ({promptTypeDiffCount})",
|
|
233
|
+
"prompt_prompt_configuration": "Prompt 配置",
|
|
234
|
+
"prompt_prompt_contains_mismatched_snippet": "Prompt 中包含不匹配模板类型的片段",
|
|
235
|
+
"prompt_prompt_debug_data_loading_refresh": "Prompt调试数据在路上,请刷新重试",
|
|
236
|
+
"prompt_prompt_diff_change_info": "Prompt Diff变更信息",
|
|
237
|
+
"prompt_prompt_invocation": "Prompt 调用",
|
|
238
|
+
"prompt_prompt_key_length_limit": "Prompt Key 长度不能超过 100 个字符",
|
|
239
|
+
"prompt_prompt_name_length_limit": "{promptNameLabel}长度不能超过 100 个字符",
|
|
240
|
+
"prompt_prompt_snippet": "Prompt 片段",
|
|
241
|
+
"prompt_prompt_snippet_description": "Prompt 片段描述",
|
|
242
|
+
"prompt_prompt_snippet_name": "Prompt 片段名称",
|
|
243
|
+
"prompt_prompt_snippet_nesting_support": "Prompt片段支持被嵌套在不同的Prompt Template里复用",
|
|
244
|
+
"prompt_prompt_snippet_reuse_support": "Prompt 片段支持在不同的 Prompt Template 里复用",
|
|
245
|
+
"prompt_prompt_submit": "Prompt 提交",
|
|
246
|
+
"prompt_prompthub_features_and_integration": "PromptHub:业务方能够通过集成 CozeLoop SDK 在业务服务中拉取于 CozeLoop 平台托管的 Prompt,获取 Prompt Template 详细内容,并在业务服务中自行调用模型进行推理或者与Eino等Agent框架进行集成。",
|
|
247
|
+
"prompt_provided_by_placeholder1": "由{placeholder1}提供",
|
|
248
|
+
"prompt_ptaas_overview_and_limitations": "PTaaS(Prompt As a Service) 即将托管的 Prompt 发布为可调用的接口,通过集成 CozeLoop SDK 在业务流程中直接且快速地调用该接口,实现 Prompt 的独立迭代与调优。PTaaS暂时不支持为业务方独立部署服务,由CozeLoop 服务提供的模型调用能力。",
|
|
249
|
+
"prompt_reference_project": "引用项目",
|
|
250
|
+
"prompt_reference_snippet_prompt_version": "引用此片段Prompt 版本",
|
|
251
|
+
"prompt_release_successful": "发布成功",
|
|
252
|
+
"prompt_repetition_penalty": "重复语句惩罚",
|
|
253
|
+
"prompt_replace_all": "替换所有",
|
|
254
|
+
"prompt_request_start_time": "请求发起时间:",
|
|
255
|
+
"prompt_response_randomness": "回复随机性",
|
|
256
|
+
"prompt_run_group_count": "运行组数",
|
|
257
|
+
"prompt_run_mode": "运行模式",
|
|
258
|
+
"prompt_sdk_data_reporting_and_observation": "接入 SDK 上报数据,进行数据观测",
|
|
259
|
+
"prompt_selected_tags": "所选标识",
|
|
260
|
+
"prompt_service_call_sync": "package main\n\nimport (\n \"context\"\n \"fmt\"\n\n \"github.com/coze-dev/cozeloop-go\"\n \"github.com/coze-dev/cozeloop-go/entity\"\n \"github.com/coze-dev/cozeloop-go/internal/util\"\n)\n\nfunc main() {\n // 1.Create a prompt on the platform\n // Create a Prompt on the platform's Prompt development page (set Prompt Key to 'ptaas_demo'),\n // add the following messages to the template, submit a version.\n // System: You are a helpful assistant for {{topic}}.\n // User: Please help me with {{user_request}}\n ctx := context.Background()\n\n // Set the following environment variables first.\n // COZELOOP_WORKSPACE_ID=your workspace id\n // COZELOOP_API_TOKEN=your token\n // 2.New loop client\n client, err := cozeloop.NewClient()\n if err != nil {\n panic(err)\n }\n defer client.Close(ctx)\n\n ctx, span := client.StartSpan(ctx, \"root_span\", \"custom\")\n defer span.Finish(ctx)\n\n // 3. Execute prompt\n executeRequest := &entity.ExecuteParam{\n PromptKey: \"CozeLoop_Oncall_Master\",\n Version: \"0.0.1\",\n VariableVals: map[string]any{\n \"topic\": \"artificial intelligence\",\n \"user_request\": \"explain what is machine learning\",\n },\n // You can also append messages to the prompt.\n Messages: []*entity.Message{\n {\n Role: entity.RoleUser,\n Content: util.Ptr(\"Keep the answer brief.\"),\n },\n },\n }\n // 3.1 non stream\n nonStream(ctx, client, executeRequest)\n client.Flush(ctx)\n}\n\nfunc nonStream(ctx context.Context, client cozeloop.Client, executeRequest *entity.ExecuteParam) {\n result, err := client.Execute(ctx, executeRequest)\n if err != nil {\n panic(err)\n }\n printExecuteResult(result)\n}\n\nfunc printExecuteResult(result entity.ExecuteResult) {\n if result.Message != nil {\n fmt.Printf(\"Message: %s\\n\", util.ToJSON(result.Message))\n }\n if util.PtrValue(result.FinishReason) != \"\" {\n fmt.Printf(\"FinishReason: %s\\n\", util.PtrValue(result.FinishReason))\n }\n if result.Usage != nil {\n fmt.Printf(\"Usage: %s\\n\", util.ToJSON(result.Usage))\n }\n}",
|
|
261
|
+
"prompt_service_config_eg": "package main\n\nimport (\n \"context\"\n \"encoding/json\"\n \"fmt\"\n\n \"github.com/coze-dev/cozeloop-go\"\n \"github.com/coze-dev/cozeloop-go/entity\"\n)\n\nfunc main() {\n // 1.Create a prompt on the platform\n // You can create a Prompt on the platform's Prompt development page (set Prompt Key to 'prompt_hub_demo'), add the following messages to the template, and submit a version.\n // System: You are a helpful bot, the conversation topic is {{var1}}.\n // Placeholder: placeholder1\n // User: My question is {{var2}}\n // Placeholder: placeholder2\n\n ctx := context.Background()\n\n // Set the following environment variables first.\n // COZELOOP_WORKSPACE_ID=your workspace id\n // COZELOOP_API_TOKEN=your token\n // 2.New loop client\n client, err := cozeloop.NewClient(\n // Set whether to report a trace span when get or format prompt.\n // Default value is false.\n cozeloop.WithPromptTrace(true))\n if err != nil {\n panic(err)\n }\n\n llmRunner := llmRunner{\n client: client,\n }\n\n // 1. start root span\n ctx, span := llmRunner.client.StartSpan(ctx, \"root_span\", \"main_span\", nil)\n\n // 2. Get the prompt\n prompt, err := llmRunner.client.GetPrompt(ctx, cozeloop.GetPromptParam{\n PromptKey: \"prompt_hub_demo\",\n // If version is not specified, the latest version of the corresponding prompt will be obtained\n Version: \"0.0.1\",\n })\n if err != nil {\n fmt.Printf(\"get prompt failed: %v\\n\", err)\n return\n }\n if prompt != nil {\n // Get messages of the prompt\n if prompt.PromptTemplate != nil {\n messages, err := json.Marshal(prompt.PromptTemplate.Messages)\n if err != nil {\n fmt.Printf(\"json marshal failed: %v\\n\", err)\n return\n }\n fmt.Printf(\"prompt messages=%s\\n\", string(messages))\n }\n // Get llm config of the prompt\n if prompt.LLMConfig != nil {\n llmConfig, err := json.Marshal(prompt.LLMConfig)\n if err != nil {\n fmt.Printf(\"json marshal failed: %v\\n\", err)\n }\n fmt.Printf(\"prompt llm config=%s\\n\", llmConfig)\n }\n\n // 3. Format messages of the prompt\n userMessageContent := \"Hello!\"\n assistantMessageContent := \"Hello!\"\n messages, err := llmRunner.client.PromptFormat(ctx, prompt, map[string]any{\n // Normal variable type should be string\n \"var1\": \"artificial intelligence\",\n // Placeholder variable type should be entity.Message/*entity.Message/[]entity.Message/[]*entity.Message\n \"placeholder1\": []*entity.Message{\n {\n Role: entity.RoleUser,\n Content: &userMessageContent,\n },\n {\n Role: entity.RoleAssistant,\n Content: &assistantMessageContent,\n },\n },\n // Other variables in the prompt template that are not provided with corresponding values will be considered as empty values\n })\n if err != nil {\n fmt.Printf(\"prompt format failed: %v\\n\", err)\n return\n }\n data, err := json.Marshal(messages)\n if err != nil {\n fmt.Printf(\"json marshal failed: %v\\n\", err)\n return\n }\n fmt.Printf(\"formatted messages=%s\\n\", string(data))\n\n if err != nil {\n return\n }\n }\n\n // 4. span finish\n span.Finish(ctx)\n\n // 5. (optional) flush or close\n // -- force flush, report all traces in the queue\n // Warning! In general, this method is not needed to be call, as spans will be automatically reported in batches.\n // Note that flush will block and wait for the report to complete, and it may cause frequent reporting,\n // affecting performance.\n llmRunner.client.Flush(ctx)\n}\n\ntype llmRunner struct {\n client cozeloop.Client\n}",
|
|
262
|
+
"prompt_service_install_eg": "go get github.com/coze-dev/cozeloop-go",
|
|
263
|
+
"prompt_simulated_value_colon": "模拟值:",
|
|
264
|
+
"prompt_single_run": "单次运行",
|
|
265
|
+
"prompt_single_turn_conversation": "单轮对话",
|
|
266
|
+
"prompt_snippet_reference_records": "片段被引用记录",
|
|
267
|
+
"prompt_snippet_variables_no_delete": "片段里的变量不支持删除",
|
|
268
|
+
"prompt_snippet_version": "片段版本",
|
|
269
|
+
"prompt_source_version": "源版本",
|
|
270
|
+
"prompt_step_placeholder1": "第{placeholder1}步",
|
|
271
|
+
"prompt_stop_all_responses": "停止全部响应",
|
|
272
|
+
"prompt_streaming_call": "流式调用",
|
|
273
|
+
"prompt_submit_new_version": "提交新版",
|
|
274
|
+
"prompt_submit_no_version_diff_confirm": "本次提交无版本差异,确定要提交么",
|
|
275
|
+
"prompt_support_multi_modal_in_prompt_via_variable": "通过变量在提示词中支持多模态信息",
|
|
276
|
+
"prompt_switch_template_engine": "更换模板引擎",
|
|
277
|
+
"prompt_synchronous_call": "同步调用",
|
|
278
|
+
"prompt_tag_allows_lowercase_num_underscore": "标识只允许小写字母、数字和下划线",
|
|
279
|
+
"prompt_tag_already_exists": "标识已存在",
|
|
280
|
+
"prompt_tag_effect_other_versions_submission_success": "已在当前 Prompt 其他版本生效。提交成功后,标识将仅在当前版本生效。",
|
|
281
|
+
"prompt_tag_exists_in_promptVersion": "当前标识已存在于{promptVersion}版本",
|
|
282
|
+
"prompt_tag_length_max_50_chars": "标识长度不能超过50个字符",
|
|
283
|
+
"prompt_template": "Prompt 模板",
|
|
284
|
+
"prompt_template_engine": "模版引擎",
|
|
285
|
+
"prompt_template_type": "模板类型",
|
|
286
|
+
"prompt_text_md_toggle": "TextMd切换",
|
|
287
|
+
"prompt_ticket_link": "工单链接",
|
|
288
|
+
"prompt_time_and_tokens_info": "耗时: {placeholder1} | Tokens:",
|
|
289
|
+
"prompt_time_consumed": "耗时:",
|
|
290
|
+
"prompt_total_reference_projects": "共 {totalReferenceCount} 个项目",
|
|
291
|
+
"prompt_triple_braces_variable_recognition": "双大括号 {{{}}} 识别变量",
|
|
292
|
+
"prompt_type_change": "类型变更",
|
|
293
|
+
"prompt_usage_call_title": "调用配置",
|
|
294
|
+
"prompt_use_js_configuration": "import { PromptHub } from '@cozeloop/ai'; \n \nconst hub = new PromptHub({ \n /** workspace id, use process.env.COZELOOP_WORKSPACE_ID when unprovided */ \n // workspaceId: 'your_workspace_id', \n apiClient: { \n // baseURL: 'api_base_url', \n // token: 'your_api_token', \n }, \n}); \n \n// get prompt with `beta` label \n// - prompt_key: xxx \n// - version: undefined \n// - label: beta \nconst prompt = await hub.getPrompt('xxx', undefined, 'beta'); \n \n// format prompt with variables \nconst messages = hub.formatPrompt(prompt, { \n var1: 'value_of_var1', \n var2: 'value_of_var2', \n var3: 'value_of_var3', \n placeholder1: { role: 'assistant', content: 'user' }, \n});",
|
|
295
|
+
"prompt_use_js_installation": "npm i @cozeloop/ai",
|
|
296
|
+
"prompt_use_js_streaming_call": "import { ApiClient, PromptAsAService } from '@cozeloop/ai'; \n \nconst apiClient = new ApiClient({ \n token: 'pat_xxx', \n}); \n \nconst model = new PromptAsAService({ \n // or set it as process.env.COZELOOP_WORKSPACE_ID, \n workspaceId: 'your_workspace_id', \n // prompt to invoke as a service \n prompt: { \n prompt_key: 'ptaas_demo', \n version: '0.0.1', \n }, \n apiClient, \n}); \n \nconst replyStream = await model.stream({ \n messages: [{ role: 'user', content: 'Keep the answer brief.' }], \n variables: { \n topic: 'artificial intelligence', \n user_request: 'explain what is machine learning', \n }, \n}); \n \nfor await (const chunk of replyStream) { \n console.info(chunk); \n}",
|
|
297
|
+
"prompt_use_js_synchronous_call": "import { ApiClient, PromptAsAService } from '@cozeloop/ai'; \n \nconst apiClient = new ApiClient({ \n token: 'pat_xxx', \n}); \n \nconst model = new PromptAsAService({ \n // or set it as process.env.COZELOOP_WORKSPACE_ID, \n workspaceId: 'your_workspace_id', \n // prompt to invoke as a service \n prompt: { \n prompt_key: 'ptaas_demo', \n version: '0.0.1', \n }, \n apiClient, \n}); \n \nconst reply = await model.invoke({ \n messages: [{ role: 'user', content: 'Keep the answer brief.' }], \n variables: { \n topic: 'artificial intelligence', \n user_request: 'explain what is machine learning', \n }, \n}); \n \nconsole.info(reply);",
|
|
298
|
+
"prompt_use_python_configuration": "if __name__ == '__main__':\n # 1.Create a prompt on the platform\n # You can create a Prompt on the platform's Prompt development page (set Prompt Key to 'prompt_hub_demo'),\n # add the following messages to the template, and submit a version.\n # System: You are a helpful bot, the conversation topic is {{var1}}.\n # Placeholder: placeholder1\n # User: My question is {{var2}}\n # Placeholder: placeholder2\n\n # Set the following environment variables first.\n # COZELOOP_WORKSPACE_ID=your workspace id\n # COZELOOP_API_TOKEN=your token\n # 2.New loop client\n client = cozeloop.new_client(\n # Set whether to report a trace span when get or format prompt.\n # Default value is false.\n prompt_trace=True)\n\n # 3. new root span\n rootSpan = client.start_span(\"root_span\", \"main_span\")\n\n # 4. Get the prompt\n # If no specific version is specified, the latest version of the corresponding prompt will be obtained\n prompt = client.get_prompt(prompt_key=\"prompt_hub_demo\", version=\"0.0.1\")\n if prompt is not None:\n # Get messages of the prompt\n if prompt.prompt_template is not None:\n messages = prompt.prompt_template.messages\n print(\n f\"prompt messages: {json.dumps([message.model_dump(exclude_none=True) for message in messages], ensure_ascii=False)}\")\n # Get llm config of the prompt\n if prompt.llm_config is not None:\n llm_config = prompt.llm_config\n print(f\"prompt llm_config: {llm_config.model_dump_json(exclude_none=True)}\")\n\n # 5.Format messages of the prompt\n formatted_messages = client.prompt_format(prompt, {\n # Normal variable type should be string\n \"var1\": \"artificial intelligence\",\n # Placeholder variable type should be Message/List[Message]\n \"placeholder1\": [Message(role=Role.USER, content=\"Hello!\"),\n Message(role=Role.ASSISTANT, content=\"Hello!\")]\n # Other variables in the prompt template that are not provided with corresponding values will be\n # considered as empty values.\n })\n print(\n f\"formatted_messages: {json.dumps([message.model_dump(exclude_none=True) for message in formatted_messages], ensure_ascii=False)}\")\n\n rootSpan.finish()\n # 6. (optional) flush or close\n # -- force flush, report all traces in the queue\n # Warning! In general, this method is not needed to be call, as spans will be automatically reported in batches.\n # Note that flush will block and wait for the report to complete, and it may cause frequent reporting,\n # affecting performance.\n client.flush()",
|
|
299
|
+
"prompt_use_python_installation": "pip install CozeLoop",
|
|
300
|
+
"prompt_use_python_simultaneous_call": "import asyncio\nimport os\n\nfrom anyio import sleep\n\nfrom cozeloop import new_client, Client\nfrom cozeloop.entities.prompt import Message, Role, ExecuteResult\n\n\ndef setup_client() -> Client:\n \"\"\"\n Unified client setup function\n \n Environment variables:\n - COZELOOP_WORKSPACE_ID: workspace ID\n - COZELOOP_API_TOKEN: API token\n \"\"\"\n # Set the following environment variables first.\n # COZELOOP_WORKSPACE_ID=your workspace id\n # COZELOOP_API_TOKEN=your token\n client = new_client(\n api_base_url=os.getenv(\"COZELOOP_API_BASE_URL\"),\n workspace_id=os.getenv(\"COZELOOP_WORKSPACE_ID\"),\n api_token=os.getenv(\"COZELOOP_API_TOKEN\"),\n )\n return client\n\n\ndef print_execute_result(result: ExecuteResult) -> None:\n \"\"\"Unified result printing function, consistent with Go version format\"\"\"\n if result.message:\n print(f\"Message: {result.message}\")\n if result.finish_reason:\n print(f\"FinishReason: {result.finish_reason}\")\n if result.usage:\n print(f\"Usage: {result.usage}\")\n\n\ndef sync_non_stream_example(client: Client) -> None:\n \"\"\"Sync non-stream call example\"\"\"\n print(\"=== Sync Non-Stream Example ===\")\n \n # 1. Create a prompt on the platform\n # Create a Prompt on the platform's Prompt development page (set Prompt Key to 'ptaas_demo'),\n # add the following messages to the template, submit a version.\n # System: You are a helpful assistant for {{topic}}.\n # User: Please help me with {{user_request}}\n \n result = client.execute_prompt(\n prompt_key=\"ptaas_demo\",\n version=\"0.0.1\",\n variable_vals={\n \"topic\": \"artificial intelligence\",\n \"user_request\": \"explain what is machine learning\"\n },\n # You can also append messages to the prompt.\n messages=[\n Message(role=Role.USER, content=\"Keep the answer brief.\")\n ],\n stream=False\n )\n print_execute_result(result)\n\n\nasync def async_non_stream_example(client: Client) -> None:\n \"\"\"Async non-stream call example\"\"\"\n print(\"=== Async Non-Stream Example ===\")\n \n result = await client.aexecute_prompt(\n prompt_key=\"ptaas_demo\",\n version=\"0.0.1\",\n variable_vals={\n \"topic\": \"artificial intelligence\",\n \"user_request\": \"explain what is machine learning\"\n },\n messages=[\n Message(role=Role.USER, content=\"Keep the answer brief.\")\n ],\n stream=False\n )\n print_execute_result(result)\n\n\nasync def main():\n \"\"\"Main function\"\"\"\n client = setup_client()\n\n root_span = client.start_span(\"root\", \"custom\")\n try:\n # Sync non-stream call\n sync_non_stream_example(client)\n\n # Async non-stream call\n await async_non_stream_example(client)\n\n finally:\n # Close client\n root_span.finish()\n if hasattr(client, 'close'):\n client.close()\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())",
|
|
301
|
+
"prompt_use_python_streaming_call": "import asyncio\nimport os\n\nfrom anyio import sleep\n\nfrom cozeloop import new_client, Client\nfrom cozeloop.entities.prompt import Message, Role, ExecuteResult\n\n\ndef setup_client() -> Client:\n \"\"\"\n Unified client setup function\n \n Environment variables:\n - COZELOOP_WORKSPACE_ID: workspace ID\n - COZELOOP_API_TOKEN: API token\n \"\"\"\n # Set the following environment variables first.\n # COZELOOP_WORKSPACE_ID=your workspace id\n # COZELOOP_API_TOKEN=your token\n client = new_client(\n api_base_url=os.getenv(\"COZELOOP_API_BASE_URL\"),\n workspace_id=os.getenv(\"COZELOOP_WORKSPACE_ID\"),\n api_token=os.getenv(\"COZELOOP_API_TOKEN\"),\n )\n return client\n\n\ndef print_execute_result(result: ExecuteResult) -> None:\n \"\"\"Unified result printing function, consistent with Go version format\"\"\"\n if result.message:\n print(f\"Message: {result.message}\")\n if result.finish_reason:\n print(f\"FinishReason: {result.finish_reason}\")\n if result.usage:\n print(f\"Usage: {result.usage}\")\n\n\ndef sync_stream_example(client: Client) -> None:\n \"\"\"Sync stream call example\"\"\"\n print(\"=== Sync Stream Example ===\")\n \n stream_reader = client.execute_prompt(\n prompt_key=\"ptaas_demo\",\n version=\"0.0.1\",\n variable_vals={\n \"topic\": \"artificial intelligence\",\n \"user_request\": \"explain what is machine learning\"\n },\n messages=[\n Message(role=Role.USER, content=\"Keep the answer brief.\")\n ],\n stream=True\n )\n \n for result in stream_reader:\n print_execute_result(result)\n \n print(\"\\nStream finished.\")\n\n\nasync def async_stream_example(client: Client) -> None:\n \"\"\"Async stream call example\"\"\"\n print(\"=== Async Stream Example ===\")\n \n stream_reader = await client.aexecute_prompt(\n prompt_key=\"ptaas_demo\",\n version=\"0.0.1\",\n variable_vals={\n \"topic\": \"artificial intelligence\",\n \"user_request\": \"explain what is machine learning\"\n },\n messages=[\n Message(role=Role.USER, content=\"Keep the answer brief.\")\n ],\n stream=True\n )\n \n async for result in stream_reader:\n print_execute_result(result)\n \n print(\"\\nStream finished.\")\n\n\nasync def main():\n \"\"\"Main function\"\"\"\n client = setup_client()\n\n root_span = client.start_span(\"root\", \"custom\")\n try:\n # Sync stream call\n sync_stream_example(client)\n\n # Async stream call\n await async_stream_example(client)\n \n finally:\n # Close client\n root_span.finish()\n if hasattr(client, 'close'):\n client.close()\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())",
|
|
302
|
+
"prompt_use_sdk": "使用 SDK",
|
|
303
|
+
"prompt_user_manual": "用户手册",
|
|
304
|
+
"prompt_user_or_model_contains_risky_content": "用户输入或者模型返回包含风险内容",
|
|
305
|
+
"prompt_var_format": "支持输入英文字母和下划线,且首字母必须是字母",
|
|
306
|
+
"prompt_variable": "Prompt 变量",
|
|
307
|
+
"prompt_variable_name": "变量名称",
|
|
308
|
+
"prompt_variable_name_cannot_start_space": "变量名不能以空格开头",
|
|
309
|
+
"prompt_variable_name_duplicate": "变量名重复",
|
|
310
|
+
"prompt_variable_name_exists": "变量名已存在",
|
|
311
|
+
"prompt_variable_name_format_rule": "变量名格式仅支持字母、数字、下划线、中划线,且不能以数字开头",
|
|
312
|
+
"prompt_variable_name_rule_letters_numbers_underscore": "只能包含字母、数字或下划线,并且以字母开头",
|
|
313
|
+
"prompt_variable_referenced_in_snippets": "此变量在{snippetNames}片段中被引用",
|
|
314
|
+
"prompt_variable_value": "变量值",
|
|
315
|
+
"prompt_version_contains_first_level_nesting": "此版本已包含一级嵌套",
|
|
316
|
+
"prompt_version_empty_submitted": "暂无已提交版本",
|
|
317
|
+
"prompt_version_inconsistent_with_prompt_template": "此版本与当前Prompt模版类型不一致",
|
|
318
|
+
"prompt_version_number_needed": "需要提供 Prompt 版本号",
|
|
319
|
+
"prompt_version_tag": "版本标识",
|
|
320
|
+
"prompt_version_tag_duplicates_exist": "版本标识存在重复",
|
|
321
|
+
"prompt_view_detailed_instructions": "查看详细说明",
|
|
322
|
+
"prompt_view_documentation": "查看文档",
|
|
323
|
+
"prompt_whole_word_match": "全词匹配",
|
|
324
|
+
"quick_create": "快捷创建",
|
|
325
|
+
"recent_submission_time": "最近提交时间",
|
|
326
|
+
"request_initiation_time": "请求发起时间",
|
|
327
|
+
"restore_to_this_version": "还原为此版本",
|
|
328
|
+
"restore_version_tip": "还原后将覆盖最新编辑的提示词。确认还原为此版本?",
|
|
329
|
+
"revert_draft_version": "返回草稿版本",
|
|
330
|
+
"rollback_success": "回滚成功",
|
|
331
|
+
"search_prompt_key_or_prompt_name": "搜索 Prompt Key 或 Prompt 名称",
|
|
332
|
+
"set_to_reference_group": "设置为基准组",
|
|
333
|
+
"single_step_debugging": "单步调试",
|
|
334
|
+
"stop_respond": "停止响应",
|
|
335
|
+
"submission_no_version_diff": "本次提交无版本差异",
|
|
336
|
+
"system_role": "System",
|
|
337
|
+
"task_delete_title": "提示",
|
|
338
|
+
"time_consumed": "耗时",
|
|
339
|
+
"top_k": "Top K",
|
|
340
|
+
"top_p": "Top P",
|
|
341
|
+
"trace_id": "Trace ID",
|
|
342
|
+
"user_role": "User",
|
|
343
|
+
"variable_setting": "变量设置",
|
|
344
|
+
"version_number_lt_error": "版本号不能小于当前版本",
|
|
345
|
+
"x_step": "第{num}步"
|
|
346
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"add_at_least_one_option": "Please add at least one tag option",
|
|
3
|
+
"add_tag": "Add Tag",
|
|
4
|
+
"add_tag_option": "Add Tag Option",
|
|
5
|
+
"annotation_data": "Annotation Data",
|
|
6
|
+
"auto_saving": "Auto saving",
|
|
7
|
+
"before_modification": "Before modification:",
|
|
8
|
+
"change_log": "Change Log",
|
|
9
|
+
"changes_sync_to_space_tag_management": "Changes will be synchronized to space tag management",
|
|
10
|
+
"confirm_enable_tag": "Are you sure to enable this tag?",
|
|
11
|
+
"confirm_save": "Confirm Save",
|
|
12
|
+
"create_tag": "Create Tag",
|
|
13
|
+
"data_engine_changes_sync_to_space_mgmt": "Changes will be synchronized to 'Space Management - Label Management'",
|
|
14
|
+
"data_engine_edit": "Data engine edit",
|
|
15
|
+
"data_engine_label_disabled": "Data engine label is disabled",
|
|
16
|
+
"data_engine_no_label_selected": "Data engine no label selected",
|
|
17
|
+
"data_engine_refresh": "Data engine refresh",
|
|
18
|
+
"description_length_limit": "Description cannot exceed 200 characters",
|
|
19
|
+
"disable_tag": "Disable Tag",
|
|
20
|
+
"disabled_tag_not_searchable": "After disabling, this tag cannot be searched and added",
|
|
21
|
+
"edit_tag": "Edit Tag",
|
|
22
|
+
"enable_tag": "Enable Tag",
|
|
23
|
+
"enter_creator": "Please enter creator",
|
|
24
|
+
"enter_description": "Please enter description",
|
|
25
|
+
"enter_subtag_name": "Please enter subtag name",
|
|
26
|
+
"enter_tag_name": "Please enter tag name",
|
|
27
|
+
"enter_tag_type": "Please enter tag type",
|
|
28
|
+
"enter_text": "Please enter text",
|
|
29
|
+
"exit_edit": "Exit Edit",
|
|
30
|
+
"keys": "en-US",
|
|
31
|
+
"no_tag_description": "No tag description",
|
|
32
|
+
"no_tags_available": "No tags available",
|
|
33
|
+
"please_enter": "Please enter",
|
|
34
|
+
"saved_check_feedback": "Saved",
|
|
35
|
+
"select_category": "Please select category",
|
|
36
|
+
"tag_auto_saving": "Auto saving...",
|
|
37
|
+
"tag_category_tag_disabled_edit_warn": "This category tag option has been disabled; if modified, it will no longer be displayed",
|
|
38
|
+
"tag_change_log": "Change log",
|
|
39
|
+
"tag_configuration": "Tag Configuration",
|
|
40
|
+
"tag_create_failure": "Tag creation failed",
|
|
41
|
+
"tag_create_success": "Tag created successfully",
|
|
42
|
+
"tag_description": "Tag Description",
|
|
43
|
+
"tag_disabled_no_modification": "This tag is disabled and cannot be modified",
|
|
44
|
+
"tag_edit_sync_warning": "After modifying tags, existing tagged data will be automatically synchronized and updated.",
|
|
45
|
+
"tag_management": "Tag Management",
|
|
46
|
+
"tag_name": "Tag Name",
|
|
47
|
+
"tag_name_length_limit": "Tag name must be 1-50 characters long",
|
|
48
|
+
"tag_name_no_duplicate_space": "Tag names are not allowed to be duplicated within the same space",
|
|
49
|
+
"tag_name_valid_chars": "Tag name only supports Chinese, English, numbers and underscores",
|
|
50
|
+
"tag_number_with_placeholder": "Total {placeholder1} tags",
|
|
51
|
+
"tag_option_enable_status": "Tag Option Enable Status",
|
|
52
|
+
"tag_option_one": "Option One",
|
|
53
|
+
"tag_option_two": "Option Two",
|
|
54
|
+
"tag_options": "Tag Options",
|
|
55
|
+
"tag_placeholder_update_start": "Update tag {placeholder1}'s",
|
|
56
|
+
"tag_saved_please_check_feedback": "Saved, please check Feedback",
|
|
57
|
+
"tag_status": "Tag Status",
|
|
58
|
+
"tag_tag_name": "Tag name",
|
|
59
|
+
"tag_type": "Tag Type",
|
|
60
|
+
"tag_update_failure": "Tag update failed",
|
|
61
|
+
"tag_update_success": "Tag updated successfully",
|
|
62
|
+
"tag_value_length_limit": "Tag value length cannot exceed 200 characters",
|
|
63
|
+
"tag_value_no_duplicate": "Tag values are not allowed to be duplicated within one tag",
|
|
64
|
+
"tag_value_not_empty": "Tag value cannot be empty",
|
|
65
|
+
"unsaved_changes_exit_warning": "Changes have not been submitted. Exiting will not save this modification.",
|
|
66
|
+
"view_tag": "View Tag"
|
|
67
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"add_at_least_one_option": "请至少添加一个标签选项",
|
|
3
|
+
"add_tag": "添加标签",
|
|
4
|
+
"add_tag_option": "添加标签选项",
|
|
5
|
+
"annotation_data": "标注数据",
|
|
6
|
+
"auto_saving": "自动保存中",
|
|
7
|
+
"before_modification": "修改前:",
|
|
8
|
+
"change_log": "变更日志",
|
|
9
|
+
"changes_sync_to_space_tag_management": "修改将会同步至标签管理。",
|
|
10
|
+
"confirm_enable_tag": "确定启用该标签吗?",
|
|
11
|
+
"confirm_save": "确认保存",
|
|
12
|
+
"create_tag": "新建标签",
|
|
13
|
+
"data_engine_changes_sync_to_space_mgmt": "修改将会同步至“空间管理-标签管理”。",
|
|
14
|
+
"data_engine_edit": "数据引擎编辑",
|
|
15
|
+
"data_engine_label_disabled": "数据引擎标签已禁用",
|
|
16
|
+
"data_engine_no_label_selected": "数据引擎未选择标签",
|
|
17
|
+
"data_engine_refresh": "数据引擎刷新",
|
|
18
|
+
"description_length_limit": "描述不能超过200个字符",
|
|
19
|
+
"disable_tag": "禁用标签",
|
|
20
|
+
"disabled_tag_not_searchable": "禁用后该标签无法被搜索添加",
|
|
21
|
+
"edit_tag": "编辑标签",
|
|
22
|
+
"enable_tag": "启用标签",
|
|
23
|
+
"enter_creator": "请输入创建人",
|
|
24
|
+
"enter_description": "请输入描述",
|
|
25
|
+
"enter_subtag_name": "请输入子标签名称",
|
|
26
|
+
"enter_tag_name": "请输入标签名称",
|
|
27
|
+
"enter_tag_type": "请输入标签类型",
|
|
28
|
+
"enter_text": "请输入文本",
|
|
29
|
+
"exit_edit": "退出编辑",
|
|
30
|
+
"keys": "zh-CN",
|
|
31
|
+
"no_tag_description": "暂无标签描述",
|
|
32
|
+
"no_tags_available": "暂无标签",
|
|
33
|
+
"please_enter": "请输入",
|
|
34
|
+
"saved_check_feedback": "已保存",
|
|
35
|
+
"select_category": "请选择分类",
|
|
36
|
+
"tag_auto_saving": "自动保存中...",
|
|
37
|
+
"tag_category_tag_disabled_edit_warn": "该分类标签选项已禁用,若修改将不再展示",
|
|
38
|
+
"tag_change_log": "修改记录",
|
|
39
|
+
"tag_configuration": "标签配置",
|
|
40
|
+
"tag_create_failure": "标签创建失败",
|
|
41
|
+
"tag_create_success": "标签创建成功",
|
|
42
|
+
"tag_description": "标签描述",
|
|
43
|
+
"tag_disabled_no_modification": "该标签已禁用,不允许修改",
|
|
44
|
+
"tag_edit_sync_warning": "修改标签后,存量已打标数据将会自动同步更新。",
|
|
45
|
+
"tag_management": "标签管理",
|
|
46
|
+
"tag_name": "标签名称",
|
|
47
|
+
"tag_name_length_limit": "标签名称必须为 1~50 字符长度",
|
|
48
|
+
"tag_name_no_duplicate_space": "同空间内标签名称不允许重复",
|
|
49
|
+
"tag_name_valid_chars": "标签名称仅支持输入中文、英文、数字和下划线",
|
|
50
|
+
"tag_number_with_placeholder": "共 {placeholder1} 个标签",
|
|
51
|
+
"tag_option_enable_status": "标签选项启用状态",
|
|
52
|
+
"tag_option_one": "选项一",
|
|
53
|
+
"tag_option_two": "选项二",
|
|
54
|
+
"tag_options": "标签选项",
|
|
55
|
+
"tag_placeholder_update_start": "将标签{placeholder1}的",
|
|
56
|
+
"tag_saved_please_check_feedback": "已保存,请前往 Feedback 查看",
|
|
57
|
+
"tag_status": "标签状态",
|
|
58
|
+
"tag_tag_name": "标签名字",
|
|
59
|
+
"tag_type": "标签类型",
|
|
60
|
+
"tag_update_failure": "标签更新失败",
|
|
61
|
+
"tag_update_success": "标签更新成功",
|
|
62
|
+
"tag_value_length_limit": "标签值长度不能超过 200 个字符",
|
|
63
|
+
"tag_value_no_duplicate": "一个标签内的标签值不允许重复",
|
|
64
|
+
"tag_value_not_empty": "标签值不能为空",
|
|
65
|
+
"unsaved_changes_exit_warning": "修改还未提交,退出后将不会保存此次修改。",
|
|
66
|
+
"view_tag": "查看标签"
|
|
67
|
+
}
|