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

Function isRawAvailableModel

apps/sim/app/api/copilot/models/route.ts:27–34  ·  view source on GitHub ↗
(item: unknown)

Source from the content-addressed store, hash-verified

25}
26
27function isRawAvailableModel(item: unknown): item is RawAvailableModel {
28 return (
29 typeof item === 'object' &&
30 item !== null &&
31 'id' in item &&
32 typeof (item as { id: unknown }).id === 'string'
33 )
34}
35
36export const GET = withRouteHandler(async (req: NextRequest) => {
37 const parsed = await parseRequest(copilotModelsContract, req, {})

Callers 1

route.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected