@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
21 lines (17 loc) • 517 B
text/typescript
import { createEnv } from '@t3-oss/env-nextjs';
import { z } from 'zod';
export const getToolsConfig = () => {
return createEnv({
runtimeEnv: {
CRAWLER_IMPLS: process.env.CRAWLER_IMPLS,
SEARCH_PROVIDERS: process.env.SEARCH_PROVIDERS,
SEARXNG_URL: process.env.SEARXNG_URL,
},
server: {
CRAWLER_IMPLS: z.string().optional(),
SEARCH_PROVIDERS: z.string().optional(),
SEARXNG_URL: z.string().url().optional(),
},
});
};
export const toolsEnv = getToolsConfig();