1
0
mirror of synced 2025-12-19 09:57:42 -05:00

Remove TODO and ai_search query param from ai-search-proxy (#58843)

This commit is contained in:
Kevin Heis
2025-12-11 11:35:45 -08:00
committed by GitHub
parent 0b02439cea
commit 50f54eb7a6

View File

@@ -60,9 +60,8 @@ export const aiSearchProxy = async (req: ExtendedRequest, res: Response) => {
let reader: ReadableStreamDefaultReader<Uint8Array> | null = null let reader: ReadableStreamDefaultReader<Uint8Array> | null = null
try { try {
// TODO: We temporarily add ?ai_search=1 to use a new pattern in cgs-copilot production
const response = await fetchStream( const response = await fetchStream(
`${process.env.CSE_COPILOT_ENDPOINT}/answers?ai_search=1`, `${process.env.CSE_COPILOT_ENDPOINT}/answers`,
{ {
method: 'POST', method: 'POST',
body: JSON.stringify(body), body: JSON.stringify(body),