Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,16 @@ export function VariableValueInput({
value={value}
onChange={v => {
// 使用正则表达式检查是否为有效数字(不包括科学记数法)
const isValidNumber = /^-?\d*\.?\d*$/.test(`${v}`);
const isValidNumber = /^-?(?:\d+\.?\d*|\.\d+)$/.test(`${v}`);
if (!isValidNumber) {
formApi?.setError(
formApi?.setError?.(
'value',
I18n.t(
'the_input_does_not_match_the_field_definition_of_the_column',
),
); // 设置错误信息
} else {
formApi?.setError('value', ''); // 清除错误信息
formApi?.setError?.('value', ''); // 清除错误信息
}
onChange?.(`${v}`);
}}
Expand Down
2 changes: 1 addition & 1 deletion release/deployment/docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
COZE_LOOP_APP_IMAGE_REGISTRY=docker.io
COZE_LOOP_APP_IMAGE_REPOSITORY=cozedev
COZE_LOOP_APP_IMAGE_NAME=coze-loop
COZE_LOOP_APP_IMAGE_TAG=1.4.1
COZE_LOOP_APP_IMAGE_TAG=1.5.1
COZE_LOOP_APP_OPENAPI_PORT=8888
COZE_LOOP_APP_DEBUG_PORT=40000
COZE_LOOP_PYTHON_FAAS_IMAGE_REGISTRY=docker.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ CREATE TABLE IF NOT EXISTS expt_turn_result_filter
ENGINE = ReplacingMergeTree(updated_at)
PARTITION BY created_date
ORDER BY (expt_id, item_id, turn_id)
SETTINGS index_granularity = 8192;
SETTINGS index_granularity = 8192;
ALTER TABLE expt_turn_result_filter
ADD COLUMN IF NOT EXISTS `eval_target_metrics` Map(String, Int64)
AFTER `updated_at`;
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ CREATE TABLE IF NOT EXISTS expt_turn_result_filter
INDEX idx_expt_id expt_id TYPE bloom_filter() GRANULARITY 1,
INDEX idx_item_id item_id TYPE bloom_filter() GRANULARITY 1,
INDEX idx_turn_id turn_id TYPE bloom_filter() GRANULARITY 1
)
ENGINE = ReplacingMergeTree(updated_at)
PARTITION BY created_date
ORDER BY (expt_id, item_id, turn_id)
SETTINGS index_granularity = 8192;
)
ENGINE = ReplacingMergeTree(updated_at)
PARTITION BY created_date
ORDER BY (expt_id, item_id, turn_id)
SETTINGS index_granularity = 8192;
ALTER TABLE expt_turn_result_filter
ADD COLUMN IF NOT EXISTS `eval_target_metrics` Map(String, Int64)
AFTER `updated_at`;
2 changes: 1 addition & 1 deletion release/deployment/helm-chart/charts/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ image:
registry: "docker.io"
repository: "cozedev"
image: "coze-loop"
tag: "1.4.1"
tag: "1.5.1"
pullPolicy: Always
pullSecrets: "coze-loop-image-secret"

Expand Down
2 changes: 1 addition & 1 deletion release/deployment/helm-chart/charts/nginx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ init_image:
registry: "docker.io"
repository: "cozedev"
image: "coze-loop"
tag: "1.4.1"
tag: "1.5.1"
pullSecrets: "coze-loop-image-secret"

deployment:
Expand Down
Loading