pref: simplified AI provider's settings
This commit is contained in:
@@ -93,7 +93,7 @@ const config: LogtoConfig = {
|
||||
const originalLogto = makeLogtoRemix(config, { sessionStorage });
|
||||
|
||||
export function shouldEnforceAuth(): boolean {
|
||||
return process.env.LOGTO_ENABLE_DEV !== 'false';
|
||||
return process.env.LOGTO_ENABLE === 'true';
|
||||
}
|
||||
|
||||
function getMockDevUser(): MockUser {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { convertToModelMessages, type LanguageModel, streamText, type UIMessage } from 'ai';
|
||||
import { createScopedLogger } from '~/lib/.server/logger';
|
||||
import { DEFAULT_PROVIDER } from '~/utils/constants';
|
||||
import { DEFAULT_PROVIDER } from '~/lib/modules/constants';
|
||||
import { stripIndents } from '~/utils/strip-indent';
|
||||
|
||||
const logger = createScopedLogger('stream-enhancer');
|
||||
|
||||
Reference in New Issue
Block a user