Skip to content

Commit

Permalink
#3026 fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed May 17, 2024
1 parent f824153 commit eb04597
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/scriptingservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1409,10 +1409,12 @@ QString ScriptingService::downloadUrlToString(const QUrl &url) {
* @return {QString} the result of the completer
*/
QString ScriptingService::aiComplete(const QString &prompt) {
#ifndef INTEGRATION_TESTS
MetricsService::instance()->sendVisitIfEnabled(QStringLiteral("scripting/") %
QString(__func__));

return OpenAiService::instance()->complete(prompt);
#endif
}

/**
Expand Down

0 comments on commit eb04597

Please sign in to comment.