MCPcopy Index your code
hub / github.com/simstudioai/sim / chatRequest

Function chatRequest

apps/sim/app/api/chat/utils.test.ts:99–103  ·  view source on GitHub ↗
(origin?: string)

Source from the content-addressed store, hash-verified

97import { assertChatEmbedAllowed, setChatAuthCookie, validateChatAuth } from '@/app/api/chat/utils'
98
99function chatRequest(origin?: string): NextRequest {
100 return new NextRequest('https://www.sim.ai/api/chat/abc', {
101 headers: origin ? { origin } : undefined,
102 })
103}
104
105describe('Chat API Utils', () => {
106 beforeEach(() => {

Callers 1

utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected