mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-04-01 18:32:44 -04:00
refactor: Remove validate request function
This commit is contained in:
@ -350,15 +350,6 @@ void LLMClientInterface::handleCompletion(const QJsonObject &request)
|
||||
false,
|
||||
false);
|
||||
|
||||
auto errors = config.provider->validateRequest(config.providerRequest, promptTemplate->type());
|
||||
if (!errors.isEmpty()) {
|
||||
QString error = QString("Request validation failed: %1").arg(errors.join("; "));
|
||||
LOG_MESSAGE("Validate errors for request:");
|
||||
LOG_MESSAGES(errors);
|
||||
sendErrorResponse(request, error);
|
||||
return;
|
||||
}
|
||||
|
||||
connect(
|
||||
provider->client(),
|
||||
&::LLMCore::BaseClient::requestCompleted,
|
||||
|
||||
Reference in New Issue
Block a user