chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:32:57 +08:00
commit cd420f9332
4811 changed files with 884702 additions and 0 deletions
@@ -0,0 +1,15 @@
import { type ActionFunctionArgs, json } from "@remix-run/server-runtime";
import { requireAdminApiRequest } from "~/services/personalAccessToken.server";
import { llmPricingRegistry } from "~/v3/llmPricingRegistry.server";
export async function action({ request }: ActionFunctionArgs) {
await requireAdminApiRequest(request);
if (!llmPricingRegistry) {
return json({ error: "LLM cost tracking is disabled" }, { status: 400 });
}
await llmPricingRegistry.reload();
return json({ success: true, message: "LLM pricing registry reloaded" });
}