Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed-bahumaish committed Mar 12, 2023
1 parent aea2caa commit fab6689
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 248 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"schemafile",
"superjson",
"TRPC",
"tsup",
"zoompanflow",
"zustand"
]
Expand Down
3 changes: 2 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"superjson": "1.9.1",
"swr": "^2.0.4",
"zod": "^3.20.6",
"zustand": "^4.3.3"
"zustand": "^4.3.3",
"openai": "^3.2.1"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.3",
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/server/api/routers/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import {
import { TRPCClientError } from "@trpc/client";
import { Configuration, OpenAIApi } from "openai";
import { z } from "zod";
import { env } from "~/env.mjs";
import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";

const configuration = new Configuration({
// apiKey: env.OPEN_AI_API_KEY,
apiKey: "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",
apiKey: env.OPEN_AI_API_KEY,
});
const openai = new OpenAIApi(configuration);
const firstLines = `
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@
"@types/node": "^18.15.0",
"prettier": "^2.8.4",
"prettier-plugin-tailwindcss": "^0.2.4",
"tsup": "^6.6.3",
"turbo": "^1.8.3"
},
"engines": {
"node": ">=14.0.0"
},
"packageManager": "pnpm@7.27.1",
"dependencies": {
"openai": "^3.2.1"
}
"packageManager": "pnpm@7.27.1"
}
3 changes: 2 additions & 1 deletion packages/prisma-dmmf-extended/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"ts-node": "^10.9.1",
"tsconfig": "workspace:*",
"tsx": "^3.12.3",
"typescript": "^4.9.5"
"typescript": "^4.9.5",
"tsup": "^6.6.3"
}
}
Loading

0 comments on commit fab6689

Please sign in to comment.