🤖 feat: Add titling to Google client (#2983)

* feat: Add titling to Google client

* feat: Add titling to Google client

* PR feedback changes
This commit is contained in:
Matthew Unrath 2024-06-22 08:42:51 -07:00 committed by GitHub
parent aac01df80c
commit b5081bfe86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 193 additions and 5 deletions

View file

@ -1,6 +1,6 @@
const express = require('express');
const AskController = require('~/server/controllers/AskController');
const { initializeClient } = require('~/server/services/Endpoints/google');
const { initializeClient, addTitle } = require('~/server/services/Endpoints/google');
const {
setHeaders,
handleAbort,
@ -20,7 +20,7 @@ router.post(
buildEndpointOption,
setHeaders,
async (req, res, next) => {
await AskController(req, res, next, initializeClient);
await AskController(req, res, next, initializeClient, addTitle);
},
);