#1345 Add API endpoint for web search interaction

This commit is contained in:
Cohee
2023-11-14 00:16:41 +02:00
parent 61764a9a21
commit 5fe8f70eb1
4 changed files with 44 additions and 0 deletions

View File

@ -3528,6 +3528,9 @@ require('./src/classify').registerEndpoints(app, jsonParser);
// Image captioning
require('./src/caption').registerEndpoints(app, jsonParser);
// Web search extension
require('./src/serpapi').registerEndpoints(app, jsonParser);
const tavernUrl = new URL(
(cliArguments.ssl ? 'https://' : 'http://') +
(listen ? '0.0.0.0' : '127.0.0.1') +