小更新,expert库的领域
This commit is contained in:
@@ -85,14 +85,13 @@ class ExpertFinder extends Base
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动国家解析:同时启动两条链,分别用不同模型并行处理。
|
||||
* 只需调一次,两条链各自链式执行直到全部处理完。
|
||||
* 启动国家解析链:只需调一次,链式执行直到全部处理完。
|
||||
* 每条任务在 fillExpertCountry 内按 affiliation 上下文长度动态选择模型地址。
|
||||
*/
|
||||
public function batchFillCountry(){
|
||||
$service = new ExpertFinderService();
|
||||
|
||||
// $chain1 = $service->enqueueNextCountryFill(0, 'FetchExpertCity', '');
|
||||
$chain2 = $service->enqueueNextCountryFill(0, 'FetchExpertCityOne', 'http://125.39.141.154:10002/v1/chat/completions');
|
||||
$started = $service->enqueueNextCountryFill(0, 'FetchExpertCityOne', '');
|
||||
|
||||
$pending = Db::name('expert')
|
||||
->where('affiliation', '<>', '')
|
||||
@@ -101,8 +100,7 @@ class ExpertFinder extends Base
|
||||
->count();
|
||||
|
||||
return jsonSuccess([
|
||||
// 'chain1_started' => $chain1,
|
||||
'chain2_started' => $chain2,
|
||||
'chain_started' => $started,
|
||||
'pending' => $pending,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user