matt HOFFNER
commited on
Commit
β’
8426b1e
1
Parent(s):
607207a
fix
Browse files
pages/api/functions/embed.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import { createSearchApi } from '
|
2 |
import { createOddsApi } from '@/app/tools/odds';
|
3 |
import { createSportsResultsApi } from '@/app/tools/scores';
|
4 |
import { handleContentText } from './utils';
|
@@ -44,7 +44,7 @@ export const serp: FunctionOutput = async ({ input }: FunctionInput) => {
|
|
44 |
}
|
45 |
|
46 |
|
47 |
-
export const
|
48 |
const content: string = await serpApi({input})
|
49 |
const serpApiResults = await similaritySearch(input, content);
|
50 |
return serpApiResults;
|
|
|
1 |
+
import { createSearchApi } from '../../../app/tools/search';
|
2 |
import { createOddsApi } from '@/app/tools/odds';
|
3 |
import { createSportsResultsApi } from '@/app/tools/scores';
|
4 |
import { handleContentText } from './utils';
|
|
|
44 |
}
|
45 |
|
46 |
|
47 |
+
export const sports: FunctionOutput = async ({ input }: FunctionInput) => {
|
48 |
const content: string = await serpApi({input})
|
49 |
const serpApiResults = await similaritySearch(input, content);
|
50 |
return serpApiResults;
|