(item: unknown)
| 25 | } |
| 26 | |
| 27 | function 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 | |
| 36 | export const GET = withRouteHandler(async (req: NextRequest) => { |
| 37 | const parsed = await parseRequest(copilotModelsContract, req, {}) |