refactor: Combine bool functions with capabilities to flag

This commit is contained in:
Petr Mironychev
2026-03-30 18:23:32 +02:00
parent 545b8ed000
commit 1c12d6d45c
23 changed files with 59 additions and 120 deletions

View File

@ -265,19 +265,10 @@ void GoogleAIProvider::sendRequest(
.arg(requestId, clientId, url.toString()));
}
bool GoogleAIProvider::supportsTools() const
PluginLLMCore::ProviderCapabilities GoogleAIProvider::capabilities() const
{
return true;
}
bool GoogleAIProvider::supportThinking() const
{
return true;
}
bool GoogleAIProvider::supportImage() const
{
return true;
return PluginLLMCore::ProviderCapability::Tools | PluginLLMCore::ProviderCapability::Thinking
| PluginLLMCore::ProviderCapability::Image;
}
void GoogleAIProvider::cancelRequest(const PluginLLMCore::RequestID &requestId)