src/app/api/listings/[id]/orchestrate-basic-package/route.ts
| Symbol | Kind | Line | Parameters |
|---|---|---|---|
fetchWithNoTimeout |
function | L27 | url, options |
StepResult |
interface | L42 | |
TokenUsage |
interface | L50 | |
ModelPricing |
interface | L58 | |
calculateCost |
function | L87 | model, inputTokens, outputTokens |
POST |
function | L123 | request, destructured |
getUrlWithParams |
function | L133 | baseUrl |
start |
method | L142 | controller |
sendUpdate |
function | L143 | message, data, step |
runPipeline |
function | L158 | |
progressCallback |
function | L165 | event |
shouldSkip |
function | L206 | stepName |
runStep |
function | L214 | stepName, stepFunction |
trackTokenUsage |
function | L224 | step, responseData, model |
callEndpointWithLogging |
function | L259 | step, url, options, useNoTimeout |
Imports: next/server, @supabase/supabase-js, undici, @/lib/orchestrator-progress