mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-19 18:35:18 +02:00
billing + credits updates (#202)
This commit is contained in:
parent
852e02e49e
commit
eccfb4748f
13 changed files with 497 additions and 229 deletions
|
|
@ -220,10 +220,10 @@ export async function POST(
|
|||
// log billing usage
|
||||
if (USE_BILLING && billingCustomerId) {
|
||||
const agentMessageCount = convertedResponseMessages.filter(m => m.role === 'assistant').length;
|
||||
await logUsage(billingCustomerId, {
|
||||
type: 'agent_messages',
|
||||
amount: agentMessageCount,
|
||||
});
|
||||
// await logUsage(billingCustomerId, {
|
||||
// type: 'agent_messages',
|
||||
// amount: agentMessageCount,
|
||||
// });
|
||||
}
|
||||
|
||||
logger.log(`Turn processing completed successfully`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue