Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(const): rename token_spend to ai_spend #86

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion const/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bpinternal/const",
"version": "0.0.17",
"version": "0.0.18",
"description": "Constant utilities for Botpress",
"main": "./dist/index.cjs",
"browser": "./dist/index.mjs",
Expand Down
8 changes: 4 additions & 4 deletions const/src/quotas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const quotaTypes = [
'table_row_count',
'workspace_member_count',
'integrations_owned_count',
'token_spend'
'ai_spend'
] as const satisfies Readonly<string[]>

export const quotaConfigs = {
Expand Down Expand Up @@ -115,10 +115,10 @@ export const quotaConfigs = {
category: 'count',
trackUsagePerBot: false
},
token_spend: {
name: 'Token Spend',
ai_spend: {
name: 'AI Spend',
description:
'Maximum amount of token spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
'Maximum amount of AI spend, expressed in nano-dollars (1 nano-dollar = $0.000000001) that can be used in a month.',
default: 5_000_000_000,
kind: 'workspace',
category: 'credit',
Expand Down
Loading