@cozeloop/loop-lng 0.0.2 → 0.0.3-beta-1769079904426
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/locales/app/en-US.json +3 -0
- package/dist/locales/app/zh-CN.json +3 -0
- package/dist/locales/base/en-US.json +0 -1
- package/dist/locales/base/zh-CN.json +0 -1
- package/dist/locales/common/en-US.json +42 -0
- package/dist/locales/common/zh-CN.json +42 -0
- package/dist/locales/components/en-US.json +97 -1
- package/dist/locales/components/zh-CN.json +96 -0
- package/dist/locales/evaluate/en-US.json +150 -133
- package/dist/locales/evaluate/zh-CN.json +115 -98
- package/dist/locales/observation/en-US.json +156 -36
- package/dist/locales/observation/zh-CN.json +156 -36
- package/dist/locales/prompt/en-US.json +17 -20
- package/dist/locales/prompt/zh-CN.json +17 -20
- package/dist/locales/tag/en-US.json +5 -7
- package/dist/locales/tag/zh-CN.json +2 -4
- package/package.json +1 -1
- package/dist/index.js.map +0 -1
|
@@ -10,71 +10,120 @@
|
|
|
10
10
|
"analytics_trace_run": "Run",
|
|
11
11
|
"analytics_trace_runtime": "Runtime",
|
|
12
12
|
"analytics_trace_type": "Type",
|
|
13
|
+
"and_condition": "且",
|
|
14
|
+
"apply_button": "应用",
|
|
15
|
+
"apply_to_space": "应用到空间",
|
|
13
16
|
"auto_evaluate": "自动评测",
|
|
14
17
|
"auto_evaluation_task": "在线评测任务",
|
|
15
18
|
"auto_evaluation_task_clone": "复制在线评测任务",
|
|
16
19
|
"auto_evaluation_task_title_copy": "_副本",
|
|
17
|
-
"auto_task_clone": "克隆",
|
|
18
20
|
"auto_task_create_success": "自动化任务创建成功",
|
|
19
21
|
"auto_task_create_tips": "自动化任务 {name} 创建完成",
|
|
20
22
|
"auto_task_edit_success": "自动化任务编辑成功",
|
|
21
23
|
"auto_task_resource_consumption_tips": "在线评测能实时评估应用表现,将产生资源点消耗。",
|
|
22
24
|
"belong_to": "属于",
|
|
25
|
+
"boolean_label": "布尔标签",
|
|
26
|
+
"button_cancel": "取消",
|
|
27
|
+
"button_confirm": "确认",
|
|
28
|
+
"cancel_button": "取消",
|
|
29
|
+
"category_label": "分类标签",
|
|
23
30
|
"click_annotation_button_to_create": "点击右上方标注数据按钮进行创建",
|
|
31
|
+
"click_to_show": "点击展示",
|
|
32
|
+
"close_origin_data": "收起原始数据",
|
|
33
|
+
"collapse_all": "一键收起",
|
|
34
|
+
"column_manage": "列管理",
|
|
35
|
+
"column_manage_tip": "重置为默认",
|
|
24
36
|
"config_evaluator": "配置评估器",
|
|
25
37
|
"confirm_delete_view": "确认删除该视图?",
|
|
38
|
+
"context_from_response_id": "历史上下文",
|
|
39
|
+
"copy_detail_link": "复制详情链接",
|
|
40
|
+
"copy_id_tooltip": "复制 ID",
|
|
41
|
+
"copy_tooltip_text": "复制",
|
|
26
42
|
"coze_conversation": "Coze 对话",
|
|
43
|
+
"coze_feedback": "Coze 对话",
|
|
27
44
|
"cozeloop_sdk": "扣子罗盘 SDK",
|
|
28
45
|
"cozeloop_sdk_manual": "扣子罗盘 SDK 接入指南",
|
|
46
|
+
"create_annotation_button": "点击右上方标注数据按钮进行创建",
|
|
47
|
+
"create_new_label": "新建标签",
|
|
48
|
+
"create_time_column": "创建时间",
|
|
29
49
|
"current_content_unavailable": "当前内容无法显示",
|
|
50
|
+
"current_context": "本轮输入",
|
|
51
|
+
"current_data_encrypted": "当前数据已被加密",
|
|
30
52
|
"current_trace_expired_to_view": "当前 Trace 已过期无法查看",
|
|
31
53
|
"custom_view": "自定义视图",
|
|
32
54
|
"data_backflow_task": "数据回流任务",
|
|
33
55
|
"data_engine_add_prefix_placeholder": "添加{prefix}",
|
|
34
56
|
"data_engine_completed": "已完成",
|
|
35
|
-
"data_engine_execute": "执行",
|
|
36
57
|
"data_expiration_time": "数据到期时间",
|
|
37
58
|
"data_source": "数据来源",
|
|
38
59
|
"day_repeat": "天重复",
|
|
39
60
|
"default_view_cannot_be_deleted": "默认视图不可删除",
|
|
40
61
|
"default_view_not_editable": "默认视图不可编辑",
|
|
41
62
|
"deletion_irreversible": "删除后操作将不可逆",
|
|
63
|
+
"details_available": "详情可见",
|
|
64
|
+
"disabled_label": "禁用",
|
|
65
|
+
"dislike": "点踩",
|
|
66
|
+
"edit_name": "编辑名称",
|
|
42
67
|
"end_time_cannot_be_less_than_current_time": "结束时间不能小于当前时间",
|
|
43
68
|
"evaluate_dataset_task_progress": "任务进度",
|
|
44
69
|
"every_{num}_days": "每 {num} 天",
|
|
45
70
|
"every_{num}_weeks": "每 {num} 周",
|
|
71
|
+
"exit_fullscreen": "退出全屏",
|
|
72
|
+
"expand_all": "一键展开",
|
|
73
|
+
"expand_origin_data": "展开原始数据",
|
|
46
74
|
"feedback_auto_evaluate": "Feedback-自动评测",
|
|
47
75
|
"feedback_coze_conversation": "Feedback-Coze 对话",
|
|
48
76
|
"feedback_manual_annotation": "Feedback-人工标注",
|
|
77
|
+
"feedback_result": "反馈结果",
|
|
49
78
|
"feedback_results": "反馈结果",
|
|
50
79
|
"fetch_sample_trace_error_tips": "获取样本 Span 失败",
|
|
51
80
|
"field_{name}_required": "{name}字段必填",
|
|
52
81
|
"field_mapping_config_incomplete": "字段映射配置不完整",
|
|
53
82
|
"field_mapping_debug": "字段映射调试",
|
|
83
|
+
"filter_ark_app": "方舟应用",
|
|
84
|
+
"filter_coze_agent": "Coze 智能体",
|
|
85
|
+
"filter_coze_app": "Coze 应用",
|
|
86
|
+
"filter_coze_workflow": "Coze 工作流",
|
|
87
|
+
"filter_custom_report": "自定义上报",
|
|
88
|
+
"filter_custom_view": "自定义视图",
|
|
89
|
+
"filter_date_picker": "时间选择器",
|
|
90
|
+
"filter_doubao": "豆包",
|
|
91
|
+
"filter_filter_select": "过滤器",
|
|
92
|
+
"filter_item": "过滤",
|
|
54
93
|
"filter_item_conflict": "过滤项冲突",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
94
|
+
"filter_more_fields_through_filter": "通过过滤器可进行更多字段筛选。",
|
|
95
|
+
"filter_platform_type": "数据来源",
|
|
96
|
+
"filter_show_results_only": "过滤后仅显示筛选结果",
|
|
97
|
+
"filter_span_type": "Span 节点",
|
|
98
|
+
"filter_tip": "查看方式、数据来源,和外侧的 Trace 列表和 SDK 上报下拉框联动。保存为视图时,需要设置这 2 项过滤条件",
|
|
99
|
+
"filter_volcano_agent_kit": "火山智能体(AgentKit)",
|
|
100
|
+
"filter_volcano_ve_agent": "火山智能体(VeFaaS)",
|
|
101
|
+
"fornax_analytics_collapse": "收起",
|
|
102
|
+
"fornax_analytics_extend": "展开",
|
|
58
103
|
"fornax_analytics_input_tokens_cost": "Input Tokens 消耗",
|
|
59
|
-
"
|
|
104
|
+
"fornax_analytics_input_tokens_count": "输入Tokens: {count} ",
|
|
60
105
|
"fornax_analytics_output_tokens_cost": "Output Tokens 消耗",
|
|
106
|
+
"fornax_analytics_output_tokens_count": "输出Tokens: {count} ",
|
|
107
|
+
"fornax_analytics_reasoning_tokens_count": "推理Tokens: {count}",
|
|
61
108
|
"fornax_analytics_time_last_minutes": "过去 {count} 分钟",
|
|
62
109
|
"fornax_analytics_tokens_cost": "Tokens 消耗",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
110
|
+
"fornax_components_logic_expr_and": "且",
|
|
111
|
+
"fornax_components_logic_expr_or": "或",
|
|
112
|
+
"fornax_data_security_guide": "Fornax 数据安全说明",
|
|
113
|
+
"fullscreen": "全屏",
|
|
114
|
+
"got_it": "我知道了",
|
|
67
115
|
"image_load_failed": "图片加载失败",
|
|
116
|
+
"input_name_placeholder": "输入名称",
|
|
117
|
+
"input_placeholder": "请输入",
|
|
68
118
|
"invalid_json": "非法 JSON",
|
|
119
|
+
"label_name_placeholder": "标签名字",
|
|
120
|
+
"learn_more": "了解更多",
|
|
121
|
+
"like": "点赞",
|
|
69
122
|
"llm_span_tip": "仅查询和模型调用相关的埋点",
|
|
70
|
-
"logic_expr_add_filter": "添加筛选条件",
|
|
71
|
-
"logic_expr_add_filter_group": "添加筛选组条件",
|
|
72
123
|
"logic_expr_and": "且",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"manual_annotation": "人工标注",
|
|
124
|
+
"logic_expr_or": "或",
|
|
125
|
+
"manual_feedback": "人工标注",
|
|
76
126
|
"manual_reflow_acknowledged": "知道了",
|
|
77
|
-
"manual_reflow_add_field_mapping": "添加字段映射",
|
|
78
127
|
"manual_reflow_add_to_dataset": "添加到数据集",
|
|
79
128
|
"manual_reflow_add_to_evaluation_set": "添加到评测集",
|
|
80
129
|
"manual_reflow_at_least_one_field_mapping": "至少保留一个字段映射",
|
|
@@ -83,13 +132,11 @@
|
|
|
83
132
|
"manual_reflow_column_name_format_error": "仅支持英文、数字、下划线,且必须以字母开头",
|
|
84
133
|
"manual_reflow_completed": "完成",
|
|
85
134
|
"manual_reflow_confirm_full_overwrite": "确认全量覆盖",
|
|
86
|
-
"manual_reflow_create": "新建",
|
|
87
135
|
"manual_reflow_data_imported_successfully": "条数据全部成功导入",
|
|
88
136
|
"manual_reflow_data_processing_failed": "数据处理失败",
|
|
89
137
|
"manual_reflow_dataset": "数据集",
|
|
90
138
|
"manual_reflow_dataset_column_name_duplicate": "该数据集列名重复",
|
|
91
139
|
"manual_reflow_dataset_column_name_exists": "该数据集列名已存在",
|
|
92
|
-
"manual_reflow_delete_field_mapping": "删除字段映射",
|
|
93
140
|
"manual_reflow_effect_preview": "效果预览",
|
|
94
141
|
"manual_reflow_empty_data": "数据为空",
|
|
95
142
|
"manual_reflow_error_processing_traces_data": "处理traces数据时发生错误:",
|
|
@@ -104,14 +151,11 @@
|
|
|
104
151
|
"manual_reflow_exceed_max_nested_depth": "数据嵌套深度超过限制",
|
|
105
152
|
"manual_reflow_exceed_max_part_count": "多模态节点数量超过限制",
|
|
106
153
|
"manual_reflow_execution_failed_reasons": "以下原因导致执行失败,请修正后重试",
|
|
107
|
-
"manual_reflow_existing": "已有",
|
|
108
154
|
"manual_reflow_field_mapping_tip_prefix": "先输入 Trace 字段,再选择数据流入的",
|
|
109
155
|
"manual_reflow_illegal_content": "包含违规内容",
|
|
110
156
|
"manual_reflow_import_will_overwrite": "导入数据将覆盖已有数据",
|
|
111
|
-
"
|
|
112
|
-
"manual_reflow_max_500_data_selection": "单次最多支持选择 200 条数据",
|
|
157
|
+
"manual_reflow_max_500_data_selection": "单次最多支持选择 500 条数据",
|
|
113
158
|
"manual_reflow_modify_config": "修改配置",
|
|
114
|
-
"manual_reflow_not_supported_yet": "暂不支持",
|
|
115
159
|
"manual_reflow_please_adjust_data_scale": "请调整待导入数据规模、数据导入方式或更换目标",
|
|
116
160
|
"manual_reflow_please_input_dataset_column_name": "请输入数据集列名",
|
|
117
161
|
"manual_reflow_please_input_evaluation_set_column_name": "请输入评测集列名",
|
|
@@ -125,13 +169,11 @@
|
|
|
125
169
|
"manual_reflow_select_trace_field": "请选择或直接输入 Trace 字段",
|
|
126
170
|
"manual_reflow_selected": "已选",
|
|
127
171
|
"manual_reflow_start_import": "开始导入",
|
|
128
|
-
"manual_reflow_target": "目标",
|
|
129
172
|
"manual_reflow_target_dataset": "目标数据集",
|
|
130
173
|
"manual_reflow_target_dataset_column": "目标数据集列",
|
|
131
174
|
"manual_reflow_target_dataset_name": "目标数据集名称",
|
|
132
175
|
"manual_reflow_target_evaluation_column": "目标评测集列",
|
|
133
176
|
"manual_reflow_target_evaluation_set": "目标评测集",
|
|
134
|
-
"manual_reflow_total": "共",
|
|
135
177
|
"manual_reflow_trace_field": "Trace 字段",
|
|
136
178
|
"manual_reflow_traces_data_validation_failed": "Traces数据验证失败",
|
|
137
179
|
"manual_reflow_upload_image_failed": "图片上传失败",
|
|
@@ -139,24 +181,39 @@
|
|
|
139
181
|
"manual_reflow_validation_result_summary": "校验结果概要",
|
|
140
182
|
"manual_reflow_validation_status": "校验状态",
|
|
141
183
|
"max_display_view_num": "最多展示{num}个视图",
|
|
184
|
+
"max_five_views": "最多展示 5 个视图",
|
|
185
|
+
"metadata_input_placeholder": "输入自定义 key",
|
|
186
|
+
"metadata_type_number": "Number",
|
|
187
|
+
"metadata_type_select_placeholder": "选择数据类型",
|
|
188
|
+
"metadata_type_string": "String",
|
|
142
189
|
"model_all_models": "全部模型",
|
|
190
|
+
"more_settings": "更多设置",
|
|
143
191
|
"name_length_limit": "名称长度不能超过{num}个字符",
|
|
144
192
|
"new_view_cannot_be_displayed": "新视图无法展示, 请修改视图展示管理",
|
|
193
|
+
"next_item": "下一条",
|
|
194
|
+
"no_context_available": "暂无上下文",
|
|
145
195
|
"no_feedback": "暂无 Feedback",
|
|
146
196
|
"no_permission_to_view": "无权限查看",
|
|
147
197
|
"no_permission_to_view_trace": "当前的角色权限暂时无法查看该 Trace 详情",
|
|
148
198
|
"no_repeat": "不重复",
|
|
199
|
+
"nodes_hidden": "{count}个节点被隐藏",
|
|
149
200
|
"not_allowed_to_be_empty": "不允许为空",
|
|
201
|
+
"numeric_label": "数值标签",
|
|
150
202
|
"observation_agent_average_execution_steps": "Agent 平均执行步数",
|
|
151
203
|
"observation_agent_average_model_calls": "Agent 平均调用模型次数",
|
|
152
204
|
"observation_agent_average_tools_executed": "Agent 平均执行工具数",
|
|
153
|
-
"observation_agent_execution_steps_per_trace": "
|
|
205
|
+
"observation_agent_execution_steps_per_trace": "Agent 执行步数 / Trace 总量",
|
|
154
206
|
"observation_all_tools": "全部工具",
|
|
207
|
+
"observation_and": "且",
|
|
155
208
|
"observation_avg_model_span_duration": "所有 Model Span 总耗时 /Model Span 总数",
|
|
156
209
|
"observation_call_frequency": "调用频次",
|
|
210
|
+
"observation_collapse": "收起",
|
|
157
211
|
"observation_context_statistics": "上下文统计",
|
|
212
|
+
"observation_copy_fail": "复制失败",
|
|
213
|
+
"observation_copy_success": "复制成功",
|
|
158
214
|
"observation_daily_unique_message_count_accumulated": "每日按唯一 Message ID 统计消息数后,进行累加",
|
|
159
215
|
"observation_daily_unique_user_count_accumulated": "每日按唯一 User ID 统计用户数后,进行累加",
|
|
216
|
+
"observation_data_empty": "暂无数据",
|
|
160
217
|
"observation_distribution_by_call_frequency_or_token": "按照调用频次或 Token 消耗最大的模型分布",
|
|
161
218
|
"observation_empty_data_abnormal": "数据不存在或异常",
|
|
162
219
|
"observation_empty_node_unselected": "未选中节点",
|
|
@@ -165,6 +222,8 @@
|
|
|
165
222
|
"observation_error_code_distribution_for_tool_span_error": "Span_Type = \"Tool\" And Status = \"Error\",By 错误码进行聚合,查看错误码分布",
|
|
166
223
|
"observation_error_distribution_by_code_for_model_span": "Model Span AND Status = \"Error\",By 错误码进行聚合,快速分析高频错误原因的分布",
|
|
167
224
|
"observation_error_span_ratio_tool_type": "状态错误且 span_type 为 Tool 的 Span 数/所有 span_type 为 Tool 的 span 数",
|
|
225
|
+
"observation_extend": "展开",
|
|
226
|
+
"observation_fetch_meta_error": "获取元数据信息失败:{msg}",
|
|
168
227
|
"observation_input_tokens_count": "输入Tokens: {count} ",
|
|
169
228
|
"observation_latency_minus_first_token_per_output_token": "(总耗时 - 模型首 Token 耗时)/ Output Tokens 总量",
|
|
170
229
|
"observation_million_tokens": "百万 Tokens",
|
|
@@ -184,6 +243,7 @@
|
|
|
184
243
|
"observation_model_span_tokens_to_duration_ratio": "Model Span 的 Tokens 总量/Model Span 的总耗时",
|
|
185
244
|
"observation_model_span_total_duration": "Model Span 的总耗时",
|
|
186
245
|
"observation_model_span_total_per_sec_min": "每秒/分钟接收的 Model Span 总量",
|
|
246
|
+
"observation_model_token_rate": "模型 Token 速率",
|
|
187
247
|
"observation_model_tokens_consumed": "模型 Tokens 消耗",
|
|
188
248
|
"observation_no_data_report_modify_time_range": "当前无数据上报,请修改时间范围。",
|
|
189
249
|
"observation_not_integrated_ko_tool_sdk": "若未接入扣子罗盘 SDK,",
|
|
@@ -191,6 +251,9 @@
|
|
|
191
251
|
"observation_number_of_users": "用户数",
|
|
192
252
|
"observation_output_tokens_count": "输出Tokens: {count}",
|
|
193
253
|
"observation_overall_latency": "整体耗时",
|
|
254
|
+
"observation_placeholder_hundred_million": "{placeholder} 亿",
|
|
255
|
+
"observation_placeholder_ten_thousand": "{placeholder} 万",
|
|
256
|
+
"observation_placeholder_thousand": "{placeholder} 千",
|
|
194
257
|
"observation_please_check_documentation": "请查看文档",
|
|
195
258
|
"observation_query_detail_span_id": "SpanID",
|
|
196
259
|
"observation_range_this_month": "本月截止目前",
|
|
@@ -208,17 +271,20 @@
|
|
|
208
271
|
"observation_tab_run_tree": "调用树",
|
|
209
272
|
"observation_thousand_tokens": "千 Tokens",
|
|
210
273
|
"observation_threads_options_dev": "开发环境",
|
|
274
|
+
"observation_threads_options_fail": "失败",
|
|
211
275
|
"observation_threads_options_online": "线上环境",
|
|
276
|
+
"observation_threads_options_success": "成功",
|
|
212
277
|
"observation_time_day_before_yesterday": "前天",
|
|
213
278
|
"observation_time_last_days": "过去 {count} 天",
|
|
214
279
|
"observation_time_last_hours": "过去 {count} 小时",
|
|
215
|
-
"observation_time_last_minutes": "过去{count}分钟",
|
|
280
|
+
"observation_time_last_minutes": "过去 {count} 分钟",
|
|
216
281
|
"observation_time_past_3_months": "过去3月",
|
|
217
282
|
"observation_time_past_month": "过去一月",
|
|
218
283
|
"observation_time_past_week": "过去一周",
|
|
219
284
|
"observation_time_past_year": "过去一年",
|
|
220
285
|
"observation_time_today_so_far": "今天截止目前",
|
|
221
286
|
"observation_time_week_so_far": "本周截止目前",
|
|
287
|
+
"observation_time_yesterday": "昨天",
|
|
222
288
|
"observation_times_occurrences": "次",
|
|
223
289
|
"observation_title_span_detail": "节点详情",
|
|
224
290
|
"observation_token_consumption": "Token 消耗",
|
|
@@ -246,16 +312,32 @@
|
|
|
246
312
|
"observation_trajectory_error": "轨迹错误",
|
|
247
313
|
"observation_trajectory_node_field_type_select_trajectory": "Trajectory 节点的字段类型请选择为轨迹",
|
|
248
314
|
"observation_trajectory_node_rule_configuration": "轨迹节点规则配置",
|
|
315
|
+
"observation_unit_hundred_million": "亿",
|
|
316
|
+
"observation_unit_hundred_million_tokens": "亿 Tokens",
|
|
317
|
+
"observation_unit_piece": "个",
|
|
318
|
+
"observation_unit_ten_thousand": "万",
|
|
319
|
+
"observation_unit_ten_thousand_tokens": "万 Tokens",
|
|
320
|
+
"observation_unit_thousand": "千",
|
|
249
321
|
"observation_usage_count": "使用次数",
|
|
250
322
|
"observation_view_trace": "查看 Trace",
|
|
251
323
|
"observation_view_trace_svg_label": "{VIEW_TRACE_SVG}查看 Trace",
|
|
252
324
|
"observation_view_trajectory": "查看轨迹",
|
|
253
325
|
"observation_view_trajectory_config": "查看轨迹配置",
|
|
326
|
+
"openapi_feedback": "OpenAPI",
|
|
327
|
+
"origin_data": "原始数据",
|
|
328
|
+
"please_configure_filter_rules": "请配置过滤规则",
|
|
254
329
|
"prev_item": "上一条",
|
|
330
|
+
"prompt_development": "Prompt 开发",
|
|
331
|
+
"quick_view_critical_trajectory": "快速查看关键轨迹",
|
|
332
|
+
"reason_column": "原因",
|
|
333
|
+
"refresh_tooltip": "刷新",
|
|
255
334
|
"repeat_frequency_max_times_error": "循环次数上限为100,请调整采样时间范围或循环频率后重试",
|
|
256
335
|
"report_in_sdk": "请尝试在SDK数据上报时,写入Input和Output信息",
|
|
257
336
|
"reported_data_not_found": "未找到上报的数据",
|
|
337
|
+
"reset_button": "重置",
|
|
338
|
+
"response_api_full_text": "Responses API 完整上下文",
|
|
258
339
|
"root_span_tip": "根据 TraceID 查询,以调用入口为粒度进行展示",
|
|
340
|
+
"round": "第 {round} 轮",
|
|
259
341
|
"sample_span_empty_field_mapping_tips": "样本 Span 没有该字段,仍可保存运行",
|
|
260
342
|
"sample_span_select_first_tips": "选取历史第一条 Span 作为参考。",
|
|
261
343
|
"sampling_data_max_upper_limit": "采样数据总上限",
|
|
@@ -265,22 +347,51 @@
|
|
|
265
347
|
"sampling_strategy": "采样策略",
|
|
266
348
|
"sampling_strategy_tips": "采样任务将在采样数据量或时间范围任一达到上限时完成",
|
|
267
349
|
"save_as_view": "另存为视图",
|
|
350
|
+
"save_button": "保存",
|
|
351
|
+
"save_current_filter_as_new_view": "将当前筛选保存为新视图",
|
|
352
|
+
"save_current_filter_to_view": "将当前筛选保存至此视图",
|
|
268
353
|
"save_to_current_view": "保存至当前视图",
|
|
269
354
|
"save_view": "保存视图",
|
|
270
355
|
"sdk_reporting": "SDK 上报",
|
|
356
|
+
"search": "搜索",
|
|
357
|
+
"search_support_quick_search": "搜索框支持快捷搜索 SpanName、Input、Output。",
|
|
358
|
+
"select_label_type": "选择标签类型",
|
|
359
|
+
"show_critical_nodes_only": "仅展示关键节点",
|
|
360
|
+
"source_column": "来源",
|
|
271
361
|
"span_filter_coze_bot_same_space_tips": "仅支持评测空间内创建完成的 Coze 智能体",
|
|
272
362
|
"span_filter_feedback_disabled_tips": "暂不支持 Feedback 值筛选",
|
|
273
363
|
"start_time_cannot_be_greater_than_end_time": "开始时间不能大于结束时间",
|
|
274
364
|
"start_time_cannot_be_less_than_current_time": "开始时间不能小于当前时间",
|
|
365
|
+
"table_col_feedback": "FeedBack",
|
|
366
|
+
"table_col_input": "Input",
|
|
367
|
+
"table_col_input_tokens": "InputTokens",
|
|
368
|
+
"table_col_latency": "Latency",
|
|
369
|
+
"table_col_latency_first": "LatencyFirstResp",
|
|
370
|
+
"table_col_logic_delete_date": "数据到期时间",
|
|
371
|
+
"table_col_output": "Output",
|
|
372
|
+
"table_col_output_tokens": "OutputTokens",
|
|
373
|
+
"table_col_prompt_key": "PromptKey",
|
|
374
|
+
"table_col_span_id": "SpanID",
|
|
375
|
+
"table_col_span_name": "SpanName",
|
|
376
|
+
"table_col_span_type": "SpanType",
|
|
377
|
+
"table_col_start_time": "StartTime",
|
|
378
|
+
"table_col_status": "Status",
|
|
379
|
+
"table_col_tokens": "Tokens",
|
|
380
|
+
"table_col_trace_id": "TraceID",
|
|
275
381
|
"task_{action}_confirm_content": "确认要{action}此任务吗?",
|
|
276
382
|
"task_can_not_obtain_value_tips": "无法获取Value值",
|
|
277
383
|
"task_cycle_option": "重复频率",
|
|
278
384
|
"task_disable_status_edit_tips": "已完成与禁用状态下不支持编辑",
|
|
279
385
|
"task_disable_tips": "只允许禁用未启动或中止状态的任务",
|
|
280
|
-
"
|
|
386
|
+
"task_filter_eq": "等于",
|
|
387
|
+
"task_filter_gt": "大于",
|
|
388
|
+
"task_filter_in": "属于",
|
|
281
389
|
"task_filter_is_null": "为空",
|
|
282
|
-
"
|
|
390
|
+
"task_filter_like": "包含",
|
|
391
|
+
"task_filter_lt": "小于",
|
|
392
|
+
"task_filter_not_eq": "不等于",
|
|
283
393
|
"task_filter_not_in": "不属于",
|
|
394
|
+
"task_filter_not_match": "不包含",
|
|
284
395
|
"task_filter_not_null": "不为空",
|
|
285
396
|
"task_filter_thumbs_down": "点踩",
|
|
286
397
|
"task_filter_thumbs_up": "点赞",
|
|
@@ -303,23 +414,32 @@
|
|
|
303
414
|
"time_range": "时间范围",
|
|
304
415
|
"tos_url_not_exist": "TOS URL 不存在,请联系 Cozeloop",
|
|
305
416
|
"trace_empty_tip": "请查看{manual}或尝试修改更大的时间范围,修改过滤器中的过滤条件",
|
|
417
|
+
"trajectory_config_description": "符合以下规则的节点将作为重点轨迹节点被展示,该规则对空间内所有 Trace 生效,默认展示模型与工具节点。",
|
|
418
|
+
"trajectory_config_set_rules": "",
|
|
419
|
+
"trajectory_config_title": "轨迹节点规则配置",
|
|
420
|
+
"trajectory_desc_default_suffix": "默认展示模型与工具节点。",
|
|
421
|
+
"trajectory_desc_prefix": "符合以下规则的节点将作为重点轨迹节点被展示,",
|
|
422
|
+
"trajectory_desc_scope": "该规则对空间内所有 Trace 生效,",
|
|
423
|
+
"trajectory_guard_description": "点击按钮筛选关键运行轨迹节点。你也可以在设置中自定义展示的内容。",
|
|
306
424
|
"trajectory_modal_desc": "符合以下规则的节点将作为重点轨迹节点被展示,该规则对空间内所有 Trace 生效,如果需要修改规则,请到 Trace 详情页进行配置",
|
|
307
425
|
"trajectory_sample": "轨迹样例",
|
|
308
426
|
"trajectory_sample_desc": "查看样例数据及可视化轨迹",
|
|
427
|
+
"trajectory_show_only": "仅展示轨迹节点",
|
|
428
|
+
"trajectory_show_only_cancel": "取消仅展示轨迹节点",
|
|
429
|
+
"updater_column": "更新人",
|
|
309
430
|
"using_cozeloop_sdk_tip": "了解数据是优化您应用的第一步,快点接入{sdk}上报数据吧,我保证这个操作真的很简单",
|
|
310
431
|
"validation_view_name_exists": "视图名称已存在",
|
|
311
432
|
"view_all": "查看全部",
|
|
433
|
+
"view_context": "查看上下文",
|
|
434
|
+
"view_delete_success": "视图删除成功",
|
|
435
|
+
"view_method": "查看方式",
|
|
436
|
+
"view_more_content": "查看剩余内容",
|
|
312
437
|
"view_name": "视图名称",
|
|
438
|
+
"view_name_already_exists": "视图名称已存在",
|
|
313
439
|
"view_sample_span": "查看样本 Span",
|
|
440
|
+
"view_save_success": "视图保存成功",
|
|
314
441
|
"view_task_progress": "查看任务进度",
|
|
315
442
|
"viewing_method": "查看方式",
|
|
316
443
|
"viewing_method_data_source_linkage": "查看方式、数据来源,和外侧的 Trace 列表和 SDK 上报下拉框联动。保存为视图时,需要设置这 2 项过滤条件",
|
|
317
|
-
"week_repeat": "周重复"
|
|
318
|
-
"weekday_friday": "周五",
|
|
319
|
-
"weekday_monday": "周一",
|
|
320
|
-
"weekday_saturday": "周六",
|
|
321
|
-
"weekday_sunday": "周日",
|
|
322
|
-
"weekday_thursday": "周四",
|
|
323
|
-
"weekday_tuesday": "周二",
|
|
324
|
-
"weekday_wednesday": "周三"
|
|
444
|
+
"week_repeat": "周重复"
|
|
325
445
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"draft_auto_saved_in": "The draft has been automatically saved in ",
|
|
34
34
|
"draft_saving": "Draft is being saved...",
|
|
35
35
|
"edit_placeholder": "Edit Placeholder",
|
|
36
|
-
"edit_prompt": "Edit
|
|
36
|
+
"edit_prompt": "Edit prompt",
|
|
37
37
|
"enable_function": "Enable",
|
|
38
38
|
"enter_free_comparison_mode": "Comparison mode",
|
|
39
39
|
"exit_free_comparison_mode": "Exit the free comparison mode",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"fornax_prompt_current_status": "Current status:",
|
|
43
43
|
"fornax_prompt_disable_model_func_google_on": "After enabling Google search, the model's function capabilities will be disabled",
|
|
44
44
|
"fornax_prompt_documentation": "Documentation",
|
|
45
|
-
"fornax_prompt_enable": "Enable",
|
|
46
45
|
"fornax_prompt_fps_influence_on_video_understanding_and_token_usage": "The higher the FPS, the more detailed the video understanding and the greater the token usage.",
|
|
47
46
|
"fornax_prompt_frame_extraction_config": "Frame Extraction Configuration",
|
|
48
47
|
"fornax_prompt_manual_config_video_sample_params": "Manually configure video variable sampling parameters, see details at",
|
|
@@ -62,7 +61,7 @@
|
|
|
62
61
|
"input_question_tip": "Please enter a question to test the large language model's response. Press Enter to send, and Shift+Enter for a new line.",
|
|
63
62
|
"input_version_number": "Please enter the version number in the format a.b.c, where each segment ranges from 0 to 9999.",
|
|
64
63
|
"insert_template": "Insert template",
|
|
65
|
-
"insert_variable": "
|
|
64
|
+
"insert_variable": "insert variable",
|
|
66
65
|
"load_more": "Load more",
|
|
67
66
|
"max_tokens": "Max tokens",
|
|
68
67
|
"max_upload_picture_num": "Upload a maximum of {num} pictures.",
|
|
@@ -97,7 +96,6 @@
|
|
|
97
96
|
"placeholder_var_name": "Placeholder variable name",
|
|
98
97
|
"please_input_with_vars": "Please enter content and use variables such as '{{USER_NAME}}",
|
|
99
98
|
"presence_penalty": "Presence penalty",
|
|
100
|
-
"preview_and_debug": "Preview and Debug",
|
|
101
99
|
"prompt_add_function": "Add function",
|
|
102
100
|
"prompt_add_multi_modal_variable": "Add multi-modal variable",
|
|
103
101
|
"prompt_add_new_multi_modal_variable": "Add new multi-modal variable",
|
|
@@ -109,7 +107,7 @@
|
|
|
109
107
|
"prompt_being_deprecated": "Being deprecated",
|
|
110
108
|
"prompt_blank_prompt": "Blank Prompt",
|
|
111
109
|
"prompt_call_records": "Call records",
|
|
112
|
-
"prompt_call_stream": "
|
|
110
|
+
"prompt_call_stream": "import (\n \"context\"\n \"errors\"\n \"io\"\n\n \"code.byted.org/flowdevops/fornax_sdk\"\n \"code.byted.org/flowdevops/fornax_sdk/domain\"\n \"code.byted.org/flowdevops/fornax_sdk/domain/chatmodel\"\n \"code.byted.org/flowdevops/fornax_sdk/domain/prompt/execution\"\n \"code.byted.org/gopkg/logs/v2\"\n)\n\nfunc main() {\n ctx := context.Background()\n config := &domain.Config{\n Identity: &domain.Identity{\n AK: \"your ak\",\n SK: \"your sk\",\n },\n }\n // 请保证同一个AKSK只初始化一个fornaxClient,在多次请求时复用\n fornaxClient, err := fornax_sdk.NewClient(config)\n if err != nil {\n logs.CtxError(ctx, \"NewClient error: %v\", err)\n panic(err)\n }\n\n streamReader, err := fornaxClient.StreamExecutePromptLocal(ctx, &execution.ExecutePromptLocalParam{\n PromptKey: \"fornax.example.trip_assistant\",\n Version: nil, // 可选,不传递则表示使用平台对应环境发布的版本(请保证发布)\n // 可选,替换prompt中的变量,map中的any类型值请自行进行序列化后传递string,仅 Jinja2/GO template 类型的模板支持在any里传递对象\n Variables: map[string]any{\n \"role\": \"旅行\",\n \"holiday_name\": \"元旦\",\n \"recomm_num\": 3,\n },\n // 可选,传递历史历史消息上下文列表和最新的用户消息\n ChatMessages: []*chatmodel.ChatMessage{\n {\n Role: chatmodel.RoleTypeUser,\n Content: \"推荐一点冬天相关的景点\",\n },\n },\n }) // 更复杂的使用场景请参考接入手册\n\n if err != nil {\n logs.CtxError(ctx, \"ExecutePromptLocal error: %v\", err)\n panic(err)\n }\n\n for {\n resp, err := streamReader.Recv(context.Background())\n if errors.Is(err, io.EOF) {\n break\n }\n if err != nil {\n logs.CtxError(ctx, \"StreamExecutePromptLocal recv error: %v\", err)\n return\n }\n logs.CtxInfo(ctx, resp.Choices[0].Delta.Content)\n }\n}",
|
|
113
111
|
"prompt_cannot_add_check_form_data": "Cannot add, please check form data",
|
|
114
112
|
"prompt_cannot_delete_snippet_variables": "Only variables inside Prompt can be deleted; variables in snippets cannot be deleted",
|
|
115
113
|
"prompt_case_sensitive": "Case sensitive",
|
|
@@ -243,9 +241,9 @@
|
|
|
243
241
|
"prompt_prompt_snippet_nesting_support": "Prompt snippets can be nested and reused in different Prompt Templates",
|
|
244
242
|
"prompt_prompt_snippet_reuse_support": "Prompt snippets support reuse in different Prompt Templates",
|
|
245
243
|
"prompt_prompt_submit": "Submit Prompt",
|
|
246
|
-
"prompt_prompthub_features_and_integration": "PromptHub
|
|
244
|
+
"prompt_prompthub_features_and_integration": "PromptHub: The business side can pull the Prompt hosted on the Fornax platform in the business service by integrating the Fornax SDK, obtain the Prompt Template details, and call the model for inference in the business service itself or integrate with the Agent framework such as Eino.",
|
|
247
245
|
"prompt_provided_by_placeholder1": "Provided by {placeholder1}",
|
|
248
|
-
"prompt_ptaas_overview_and_limitations": "PTaaS (Prompt As a Service)
|
|
246
|
+
"prompt_ptaas_overview_and_limitations": "PTaaS (Prompt As a Service) will release the hosted Prompt as a callable interface, which can be directly and quickly invoked in the business process by integrating the Fornax SDK to achieve independent iteration and tuning of Prompt. PTaaS temporarily does not support independent deployment of services for business parties, but the model invocation ability provided by the Fornax service.",
|
|
249
247
|
"prompt_reference_project": "Referencing Project",
|
|
250
248
|
"prompt_reference_snippet_prompt_version": "Referencing this snippet's Prompt version",
|
|
251
249
|
"prompt_release_successful": "Release successful",
|
|
@@ -257,9 +255,9 @@
|
|
|
257
255
|
"prompt_run_mode": "Run mode",
|
|
258
256
|
"prompt_sdk_data_reporting_and_observation": "Access SDK to report data and perform data observation",
|
|
259
257
|
"prompt_selected_tags": "Selected tags",
|
|
260
|
-
"prompt_service_call_sync": "
|
|
261
|
-
"prompt_service_config_eg": "
|
|
262
|
-
"prompt_service_install_eg": "go get
|
|
258
|
+
"prompt_service_call_sync": "import (\n \"context\"\n\n \"code.byted.org/flowdevops/fornax_sdk\"\n \"code.byted.org/flowdevops/fornax_sdk/domain\"\n \"code.byted.org/flowdevops/fornax_sdk/domain/chatmodel\"\n \"code.byted.org/flowdevops/fornax_sdk/domain/prompt/execution\"\n \"code.byted.org/gopkg/logs/v2\"\n)\n\nfunc main() {\n ctx := context.Background()\n config := &domain.Config{\n Identity: &domain.Identity{\n AK: \"your ak\",\n SK: \"your sk\",\n },\n }\n // 请保证同一个AKSK只初始化一个fornaxClient,在多次请求时复用\n fornaxClient, err := fornax_sdk.NewClient(config)\n if err != nil {\n logs.CtxError(ctx, \"NewClient error: %v\", err)\n panic(err)\n }\n\n result, err := fornaxClient.ExecutePromptLocal(ctx, &execution.ExecutePromptLocalParam{\n PromptKey: \"fornax.example.trip_assistant\",\n Version: nil, // 可选,不传递则表示使用平台对应环境发布的版本(请保证发布)\n // 可选,替换prompt中的变量,map中的any类型值请自行进行序列化后传递string,仅 Jinja2/GO template 类型的模板支持在any里传递对象\n Variables: map[string]any{\n \"role\": \"旅行\",\n \"holiday_name\": \"元旦\",\n \"recomm_num\": \"3\",\n },\n // 可选,传递历史历史消息上下文列表和最新的用户消息\n ChatMessages: []*chatmodel.ChatMessage{\n {\n Role: chatmodel.RoleTypeUser,\n Content: \"推荐一点冬天相关的景点\",\n },\n },\n }) // 更复杂的使用场景请参考接入手册\n\n if err != nil {\n logs.CtxError(ctx, \"ExecutePromptLocal error: %v\", err)\n panic(err)\n }\n\n logs.CtxInfo(ctx, result.Choices[0].Message.Content)\n}",
|
|
259
|
+
"prompt_service_config_eg": "import (\n \"context\"\n\n \"code.byted.org/flowdevops/fornax_sdk\"\n \"code.byted.org/flowdevops/fornax_sdk/domain\"\n \"code.byted.org/flowdevops/fornax_sdk/domain/prompt\"\n \"code.byted.org/gopkg/logs/v2\"\n)\n\nfunc main() {\n ctx := context.Background()\n config := &domain.Config{\n Identity: &domain.Identity{\n AK: \"your ak\",\n SK: \"your sk\",\n },\n }\n // 请保证同一个AKSK只初始化一个fornaxClient,在多次请求时复用\n fornaxClient, err := fornax_sdk.NewClient(config)\n if err != nil {\n logs.CtxError(ctx, \"NewClient error: %v\", err)\n panic(err)\n }\n getPromptResult, err := fornaxClient.GetPrompt(ctx, &prompt.GetPromptParam{\n Key: \"fornax.example.trip_assistant\",\n Version: nil, // 可选,不传递则表示使用平台对应环境发布的版本(请保证发布)\n })\n if err != nil {\n logs.CtxError(ctx, \"GetPrompt error: %v\", err)\n panic(err)\n }\n promptObj := getPromptResult.Prompt\n // 可选,替换prompt中的变量,map中的any类型值请自行进行序列化后传递string,仅 Jinjia/GO template 类型的模板支持在any里传递对象\n messageList, err := fornaxClient.FormatPrompt(ctx, promptObj, map[string]any{\n \"role\": \"旅游\",\n \"holiday_name\": \"五一\",\n \"recomm_num\": \"3\",\n })\n // 第0个元素是systemprompt,如果托管了userprompt,第1个元素是userprompt\n for _, message := range messageList {\n logs.CtxInfo(ctx, \"role: %s,prompt:%s \\n\", message.Role, message.Content)\n }\n}",
|
|
260
|
+
"prompt_service_install_eg": "go get code.byted.org/flowdevops/fornax_sdk@latest",
|
|
263
261
|
"prompt_simulated_value_colon": "Simulated value:",
|
|
264
262
|
"prompt_single_run": "Single run",
|
|
265
263
|
"prompt_single_turn_conversation": "Single-turn Conversation",
|
|
@@ -291,14 +289,14 @@
|
|
|
291
289
|
"prompt_triple_braces_variable_recognition": "Triple braces {{{}}} recognize variables",
|
|
292
290
|
"prompt_type_change": "Type change",
|
|
293
291
|
"prompt_usage_call_title": "call configuration",
|
|
294
|
-
"prompt_use_js_configuration": "import {
|
|
295
|
-
"prompt_use_js_installation": "npm i @
|
|
296
|
-
"prompt_use_js_streaming_call": "import {
|
|
297
|
-
"prompt_use_js_synchronous_call": "import {
|
|
298
|
-
"prompt_use_python_configuration": "
|
|
299
|
-
"prompt_use_python_installation": "pip install
|
|
300
|
-
"prompt_use_python_simultaneous_call": "
|
|
301
|
-
"prompt_use_python_streaming_call": "
|
|
292
|
+
"prompt_use_js_configuration": "import { fornaxPromptHub } from '@next-ai/fornax-sdk/components';\n\nconst hub = fornaxPromptHub({\n ak: '<fornax ak>',\n sk: '<fornax sk>',\n // Control plane area, CN by default\n // region: 'CN' | 'I18N',\n});\n\nconst promptKey = 'fornax.demo.fornax_oncall';\nconst promptVersion = '0.0.3';\n\n// Preload Prompts (Optional)\nawait hub.preload({ key: promptKey, version: promptVersion });\n\n// Get Prompt & Interpolation\nconst prompt = await hub.get({\n key: promptKey,\n version: promptVersion,\n // Interpolate the variables in System/User Prompt automatically\n variables: {\n // Corresponding to {{name}} and so on\n name: 'Oncall Agent',\n context: '<The context retrieved from the knowledge base>',\n query: 'Introduce the evaluation function of the Fornax platform',\n },\n});",
|
|
293
|
+
"prompt_use_js_installation": "npm i @next-ai/fornax-sdk",
|
|
294
|
+
"prompt_use_js_streaming_call": "import { ptaas } from '@next-ai/fornax-sdk/components';\n\n// Prompt Key\nconst promptKey = 'fornax.prompt.key';\n// Initialize Prompt as a Service\nconst model = ptaas(promptKey, {\n // Fornax auth options,⚠️ which is necessary to correspond to the Prompt Key\n ak: '<fornax ak>',\n sk: '<fornax sk>',\n // Optional Initialize the model configuration.\n // It can also be passed when invoking/streaming (merged, with higher priority)\n modelConfigs: {\n // Optional The version released by Prompt, or the latest version will be used by default if it is empty.\n version: '0.0.1',\n // Optional Interpolation variables\n variables: {},\n // Optional List of independent model accounts.\n // When choosing the independent account mode, it is necessary to pass on your own independent account information.\n customAccounts: [],\n // Optional Extra request params (eg: `gptOpenApiExtra`)\n requestExtra: {\n // Optional gpt extra params\n gptOpenApiExtra: '',\n },\n },\n});\n\n// Streaming call\nconst { fullStream } = await model.stream({\n // messages / contexts\n messages: [{ role: 'user', content: 'hello' }],\n // Runtime Model Config\n modelConfigs: {},\n});\n\n// for-await iteration\nfor await (const chunk of fullStream) {\n console.info(chunk.choices[0].message.content);\n}",
|
|
295
|
+
"prompt_use_js_synchronous_call": "import { ptaas } from '@next-ai/fornax-sdk/components';\n\n// Prompt Key\nconst promptKey = 'fornax.prompt.key';\n// Initialize Prompt as a Service\nconst model = ptaas(promptKey, {\n // Fornax auth options,⚠️ which is necessary to correspond to the Prompt Key\n ak: '<fornax ak>',\n sk: '<fornax sk>',\n // Optional Initialize the model configuration.\n // It can also be passed when invoking/streaming (merged, with higher priority)\n modelConfigs: {\n // Optional The version released by Prompt, or the latest version will be used by default if it is empty.\n version: '0.0.1',\n // Optional Interpolation variables\n variables: {},\n // Optional List of independent model accounts.\n // When choosing the independent account mode, it is necessary to pass on your own independent account information.\n customAccounts: [],\n // Optional Extra request params (eg: `gptOpenApiExtra`)\n requestExtra: {\n // Optional gpt extra params\n gptOpenApiExtra: '',\n },\n },\n});\n\n// Non streaming call\nconst { choices } = await model.invoke({\n // messages / contexts\n messages: [{ role: 'user', content: 'hello' }],\n // Runtime Model Config\n modelConfigs: {},\n});\n",
|
|
296
|
+
"prompt_use_python_configuration": "from bytedance.fornax.infra import FornaxClient, initialize\n\n# 初始化fornax sdk\ninitialize('your ak', 'your sk')\n\nprompt = FornaxClient.global_fornax_client.get_fornax_prompt(\n prompt_key=\"prompt.chatcompletion.test\",\n # 不传默认为当前环境发布的最新版本\n # version=\"0.0.1\"\n)\nif prompt.prompt_text.system_prompt is not None:\n print(prompt.prompt_text.system_prompt.content)\nif prompt.prompt_text.user_prompt is not None:\n print(prompt.prompt_text.user_prompt.content)",
|
|
297
|
+
"prompt_use_python_installation": "pip install bytedance.fornax",
|
|
298
|
+
"prompt_use_python_simultaneous_call": "from bytedance.fornax.infra import FornaxClient, initialize\nfrom bytedance.fornax.infra.prompt_service import ExecutePromptParam\nfrom bytedance.fornax.infra.prompt_service.types import Message, MessageType, Variable\n\n\n# 初始化fornax sdk\ninitialize('your ak', 'your sk')\n\n# Fornax SDK执行Prompt入参\nparams = ExecutePromptParam(prompt_key=\"prompt.chatcompletion.test\",\n # 可选,替换Prompt Template里定义的变量\n variables=[Variable(key=\"name\", value=\"小娜\")],\n # 可选,历史消息上下文\n contexts=[\n Message(content=\"我叫小帅\", message_type=MessageType.USER),\n Message(content=\"你好呀\", message_type=MessageType.ASSISTANT),\n ],\n # 可选,用户当前消息\n message=Message(\n message_type=MessageType.USER,\n content=\"介绍一下你自己\",\n ),\n )\n# 非流式执行Prompt,stream=False\nresp = FornaxClient.global_fornax_client.execute_prompt(params, stream=False)\nprint(resp.item.content)",
|
|
299
|
+
"prompt_use_python_streaming_call": "from bytedance.fornax.infra import FornaxClient, initialize\nfrom bytedance.fornax.infra.prompt_service import ExecutePromptParam\nfrom bytedance.fornax.infra.prompt_service.types import Message, MessageType, Variable\n\n\n# 初始化fornax sdk\ninitialize('your ak', 'your sk')\n\n# Fornax SDK执行Prompt入参\nparams = ExecutePromptParam(prompt_key=\"prompt.chatcompletion.test\",\n # 可选,替换Prompt Template里定义的变量\n variables=[Variable(key=\"name\", value=\"小娜\")],\n # 可选,历史消息上下文\n contexts=[\n Message(content=\"我叫小帅\", message_type=MessageType.USER),\n Message(content=\"你好呀\", message_type=MessageType.ASSISTANT),\n ],\n # 可选,用户当前消息\n message=Message(\n message_type=MessageType.USER,\n content=\"介绍一下你自己\",\n ),\n )\n# 非流式执行Prompt,stream=False\nresp_stream = FornaxClient.global_fornax_client.execute_prompt(params, stream=True)\n\n# next方式读取\n# while True:\n# try:\n# chunk = next(resp_stream)\n# print(chunk.item.content)\n# except StopIteration:\n# break\n\n# for循环方式读取\nfor chunk in resp_stream:\n print(chunk.item.content)",
|
|
302
300
|
"prompt_use_sdk": "Use SDK",
|
|
303
301
|
"prompt_user_manual": "User manual",
|
|
304
302
|
"prompt_user_or_model_contains_risky_content": "User input or model output contains risky content",
|
|
@@ -311,7 +309,7 @@
|
|
|
311
309
|
"prompt_variable_name_format_rule": "Variable name format only supports letters, numbers, underscores, hyphens, and cannot start with a digit",
|
|
312
310
|
"prompt_variable_name_rule_letters_numbers_underscore": "Can only contain letters, numbers, or underscores and must start with a letter",
|
|
313
311
|
"prompt_variable_referenced_in_snippets": "This variable is referenced in {snippetNames} snippets",
|
|
314
|
-
"prompt_variable_value": "
|
|
312
|
+
"prompt_variable_value": "Prompt variable value",
|
|
315
313
|
"prompt_version_contains_first_level_nesting": "This version already contains first-level nesting",
|
|
316
314
|
"prompt_version_empty_submitted": "No version has been submitted yet",
|
|
317
315
|
"prompt_version_inconsistent_with_prompt_template": "This version is inconsistent with the current Prompt template type",
|
|
@@ -334,7 +332,6 @@
|
|
|
334
332
|
"stop_respond": "Stop responding",
|
|
335
333
|
"submission_no_version_diff": "There is no version difference in this submission.",
|
|
336
334
|
"system_role": "System",
|
|
337
|
-
"task_delete_title": "hint",
|
|
338
335
|
"time_consumed": "Time cost",
|
|
339
336
|
"top_k": "Top K",
|
|
340
337
|
"top_p": "Top P",
|