Skip to content

Commit 597fa36

Browse files
authored
Modgpt/fix/clerk3 (#682)
1 parent c87760e commit 597fa36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/modgpt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codemod-com/modgpt",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"type": "module",
55
"scripts": {
66
"build": "node esbuild.config.js",

apps/modgpt/src/routes/sendChat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const openAiEdgeApi = new openAiEdge.OpenAIApi(
3434

3535
export const getSendChatPath = (instance: Instance) =>
3636
instance.post("/sendChat", async (request, reply) => {
37-
if (!isDevelopment && clerkApplied) {
37+
if (clerkApplied) {
3838
const { userId } = getAuth(request);
3939
if (!userId) {
4040
reply.code(401).send();
@@ -43,7 +43,7 @@ export const getSendChatPath = (instance: Instance) =>
4343
} else {
4444
if (!clerkApplied)
4545
console.warn("No Clerk keys set. Authentication is disabled.");
46-
if (isDevelopment) console.info("ENV set to development");
46+
// if (isDevelopment) console.info("ENV set to development");
4747
}
4848

4949
const { messages, engine } = parseSendChatBody(request.body);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy