File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
apps/sim/app/api/copilot/chat Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { createLogger } from '@/lib/logs/console/logger'
88import { db } from '@/db'
99import { copilotChats } from '@/db/schema'
1010import { executeProviderRequest } from '@/providers'
11+ import { env } from '@/lib/env'
1112
1213const logger = createLogger ( 'CopilotChatAPI' )
1314
@@ -24,8 +25,8 @@ const ChatMessageSchema = z.object({
2425} )
2526
2627// Sim Agent API configuration
27- const SIM_AGENT_API_URL = process . env . SIM_AGENT_API_URL || 'http://localhost:8000'
28- const SIM_AGENT_API_KEY = process . env . SIM_AGENT_API_KEY
28+ const SIM_AGENT_API_URL = env . SIM_AGENT_API_URL || 'http://localhost:8000'
29+ const SIM_AGENT_API_KEY = env . SIM_AGENT_API_KEY
2930
3031/**
3132 * Generate a chat title using LLM
You can’t perform that action at this time.
0 commit comments