weird thing

This commit is contained in:
Gergő Móricz 2025-06-03 19:04:51 +02:00
parent 1dc6a443cb
commit 359711656a
2 changed files with 20 additions and 18 deletions

View File

@ -10,15 +10,16 @@ export async function creditUsageController(
): Promise<void> {
try {
// If we already have the credit usage info from auth, use it
if (req.acuc) {
res.json({
success: true,
data: {
remaining_credits: req.acuc.remaining_credits,
},
});
return;
}
// TEMP: cache issues - mogery
// if (req.acuc) {
// res.json({
// success: true,
// data: {
// remaining_credits: req.acuc.remaining_credits,
// },
// });
// return;
// }
// Otherwise fetch fresh data
const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Scrape);

View File

@ -10,15 +10,16 @@ export async function tokenUsageController(
): Promise<void> {
try {
// If we already have the token usage info from auth, use it
if (req.acuc) {
res.json({
success: true,
data: {
remaining_tokens: req.acuc.remaining_credits,
},
});
return;
}
// TEMP: cache issues - mogery
// if (req.acuc) {
// res.json({
// success: true,
// data: {
// remaining_tokens: req.acuc.remaining_credits,
// },
// });
// return;
// }
// Otherwise fetch fresh data
const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Extract);