Skip to content

Commit

Permalink
removes GOOGLE_SEARCH_API_KEY and adds GOOGLE_SEARCH_ENGINE_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ctate committed May 20, 2024
1 parent 83f01cb commit b56f06a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion platforms/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pnpm install
OPENAI_API_KEY=""
OPENWEATHER_API_KEY=""
GOOGLE_API_KEY=""
GOOGLE_SEARCH_API_KEY=""
GOOGLE_SEARCH_ENGINE_ID=""
```

### Run Development Server
Expand Down
4 changes: 2 additions & 2 deletions platforms/web/app/tools/recipe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export default function makeRecipe({ aiState }: any) {
yield <Spinner />;

const res = await google.customsearch("v1").cse.list({
auth: process.env.GOOGLE_SEARCH_API_KEY!,
cx: "17486b203b6a74b0a",
auth: process.env.GOOGLE_API_KEY!,
cx: process.env.GOOGLE_SEARCH_ENGINE_ID!,
q: `${name} recipe`,
searchType: "image",
});
Expand Down
4 changes: 2 additions & 2 deletions platforms/web/app/tools/searchImages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function searchImages({ aiState }: any) {
);

const res = await google.customsearch("v1").cse.list({
auth: process.env.GOOGLE_SEARCH_API_KEY!,
cx: "17486b203b6a74b0a",
auth: process.env.GOOGLE_API_KEY!,
cx: process.env.GOOGLE_SEARCH_ENGINE_ID!,
q: query,
searchType: "image",
});
Expand Down
4 changes: 2 additions & 2 deletions platforms/web/app/tools/searchWeb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function searchWeb({ aiState }: any) {
);

const res = await google.customsearch("v1").cse.list({
auth: process.env.GOOGLE_SEARCH_API_KEY!,
cx: "17486b203b6a74b0a",
auth: process.env.GOOGLE_API_KEY!,
cx: process.env.GOOGLE_SEARCH_ENGINE_ID!,
q: query,
});

Expand Down
2 changes: 1 addition & 1 deletion platforms/web/app/tools/searchYouTube.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function searchYouTube({ aiState }: any) {
);

const res = await google.youtube("v3").search.list({
auth: process.env.GOOGLE_SEARCH_API_KEY!,
auth: process.env.GOOGLE_API_KEY!,
q: query,
part: ["snippet"],
});
Expand Down

0 comments on commit b56f06a

Please sign in to comment.