File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codemod-com/modgpt" ,
3
- "version" : " 0.0.9 " ,
3
+ "version" : " 0.0.10 " ,
4
4
"type" : " module" ,
5
5
"scripts" : {
6
6
"build" : " node esbuild.config.js" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const openAiEdgeApi = new openAiEdge.OpenAIApi(
34
34
35
35
export const getSendChatPath = ( instance : Instance ) =>
36
36
instance . post ( "/sendChat" , async ( request , reply ) => {
37
- if ( ! isDevelopment && clerkApplied ) {
37
+ if ( clerkApplied ) {
38
38
const { userId } = getAuth ( request ) ;
39
39
if ( ! userId ) {
40
40
reply . code ( 401 ) . send ( ) ;
@@ -43,7 +43,7 @@ export const getSendChatPath = (instance: Instance) =>
43
43
} else {
44
44
if ( ! clerkApplied )
45
45
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");
47
47
}
48
48
49
49
const { messages, engine } = parseSendChatBody ( request . body ) ;
You can’t perform that action at this time.
0 commit comments