revert: 移除between自动检测,改为在定价数据fields中添加prompt_tokens/completion_tokens定义
This commit is contained in:
parent
485ecf343e
commit
a33837d33f
@ -640,10 +640,7 @@ order by b.enabled_date desc"""
|
||||
continue
|
||||
f = d.fields.get(fk)
|
||||
if not f:
|
||||
if isinstance(fv, str) and any(op in fv for op in ('~=', '=~', '~', '=~=')):
|
||||
f = DictObject(type='float', value_mode='between')
|
||||
else:
|
||||
continue
|
||||
continue
|
||||
data_value = config_data.get(fk)
|
||||
data_value = data_mapping(d, fk, data_value)
|
||||
if data_value is None:
|
||||
@ -690,10 +687,7 @@ order by b.enabled_date desc"""
|
||||
continue
|
||||
f = d.fields.get(fk)
|
||||
if not f:
|
||||
if isinstance(fv, str) and any(op in fv for op in ('~=', '=~', '~', '=~=')):
|
||||
f = DictObject(type='float', value_mode='between')
|
||||
else:
|
||||
continue
|
||||
continue
|
||||
data_value = config_data.get(fk)
|
||||
data_value = data_mapping(d, fk, data_value)
|
||||
if data_value is None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user