Skip to content

Commit

Permalink
Remove fetch polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
beerose committed Feb 17, 2023
1 parent 52ecb7c commit c919844
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/commands/search.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { Configuration, OpenAIApi } from "openai";
import { PineconeClient } from "pinecone-client";

import { fetchPolyfill } from "../fetchPolyfill.js";

import { semanticQuery } from "../semanticQuery.js";
import { SemanticSearchMetadata } from "../types.js";

export async function search(query: string) {
await fetchPolyfill();

const openai = new OpenAIApi(
new Configuration({
apiKey: process.env.OPENAI_API_KEY!,
Expand Down
10 changes: 0 additions & 10 deletions src/fetchPolyfill.ts

This file was deleted.

0 comments on commit c919844

Please sign in to comment.