Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

417 B
Raw Blame
import type { TAgentsEndpoint } from 'librechat-data-provider';

type AgentEventRuntimeConfig = NonNullable<TAgentsEndpoint['eventDriven']>;

/** Applies the optional base-config routing choice before the event listener starts. */
export const configureAgentEventRuntime = (config?: AgentEventRuntimeConfig): void => {
  if (config?.selfUrl != null) {
    process.env.AGENT_TRIGGERS_SELF_URL = config.selfUrl;
  }
};