matt HOFFNER commited on
Commit
8426b1e
β€’
1 Parent(s): 607207a
Files changed (1) hide show
  1. pages/api/functions/embed.ts +2 -2
pages/api/functions/embed.ts CHANGED
@@ -1,4 +1,4 @@
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,7 +44,7 @@ export const serp: FunctionOutput = async ({ input }: FunctionInput) => {
44
  }
45
 
46
 
47
- export const serp: FunctionOutput = async ({ input }: FunctionInput) => {
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;