Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit df4b1a2

Browse files
fix: use updated configuration for remote model when reload (#1972)
Co-authored-by: sangjanai <[email protected]>
1 parent c18c650 commit df4b1a2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

engine/services/inference_service.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ cpp::result<void, InferResult> InferenceService::HandleChatCompletion(
2424
auto status = std::get<0>(ir)["status_code"].asInt();
2525
if (status != drogon::k200OK) {
2626
CTL_INF("Model is not loaded, start loading it: " << model_id);
27-
auto res = LoadModel(saved_models_.at(model_id));
28-
// ignore return result
27+
// For remote engine, we use the updated configuration
28+
if (engine_service_->IsRemoteEngine(engine_type)) {
29+
(void)model_service_.lock()->StartModel(model_id, {}, false);
30+
} else {
31+
(void)LoadModel(saved_models_.at(model_id));
32+
}
2933
}
3034
}
3135

0 commit comments

Comments
 (0)