MCPcopy Create free account
hub / github.com/Shinplex/rever / modelsPayload

Function modelsPayload

workers/retool.ts:374–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372 * Small helpers
373 * ------------------------------------------------------------------------------------------------ */
374function modelsPayload() {
375 return {
376 object: "list",
377 data: AVAILABLE_MODELS.map((m) => ({
378 id: m.id,
379 object: "model",
380 created: Math.floor(Date.now() / 1000),
381 owned_by: m.owned_by,
382 name: `${m.name} (${m.model_name})`,
383 })),
384 };
385}
386function json(obj: unknown, status = 200) {
387 return new Response(JSON.stringify(obj), {
388 status,

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected