Events: AI use in tokens, not rand (for 2.3.0); contracts: token fields on the AI status
Site settings → AI, the usage tables and the 80% email show input/output tokens and the percentage; the rand amounts from the Hub are dropped on arrival. AiCall stores each call's tokens (migration ai_tokens). v2 /ai/status and /ai/usage carry tokens instead of cents. Needs Hub 2.0.1 for the token figures; older Hubs show the percentage only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67449,16 +67449,61 @@
|
||||
"type": "boolean",
|
||||
"description": "false: the Hub couldn't be reached just now"
|
||||
},
|
||||
"capCents": {
|
||||
"type": "number",
|
||||
"description": "The monthly allowance, in cents"
|
||||
},
|
||||
"usedCents": {
|
||||
"type": "number",
|
||||
"description": "Used this month, in cents (fractions of a cent)"
|
||||
},
|
||||
"usedPercent": {
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"description": "How much of this month's allowance is used (0–100)"
|
||||
},
|
||||
"usedInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Input tokens used this month by all the church's products (null from a Hub before 2.0.1)"
|
||||
},
|
||||
"usedOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Output tokens used this month"
|
||||
},
|
||||
"capInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many input tokens the monthly allowance holds, if half of it went on input (an estimate: cached prompts cost less)"
|
||||
},
|
||||
"capOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many output tokens the allowance holds, if half of it went on output"
|
||||
},
|
||||
"renewsOn": {
|
||||
"description": "YYYY-MM-DD",
|
||||
@@ -67501,9 +67546,11 @@
|
||||
"enabled",
|
||||
"capReached",
|
||||
"available",
|
||||
"capCents",
|
||||
"usedCents",
|
||||
"usedPercent",
|
||||
"usedInputTokens",
|
||||
"usedOutputTokens",
|
||||
"capInputTokens",
|
||||
"capOutputTokens",
|
||||
"renewsOn",
|
||||
"helpers"
|
||||
],
|
||||
@@ -67581,16 +67628,61 @@
|
||||
"type": "boolean",
|
||||
"description": "false: the Hub couldn't be reached just now"
|
||||
},
|
||||
"capCents": {
|
||||
"type": "number",
|
||||
"description": "The monthly allowance, in cents"
|
||||
},
|
||||
"usedCents": {
|
||||
"type": "number",
|
||||
"description": "Used this month, in cents (fractions of a cent)"
|
||||
},
|
||||
"usedPercent": {
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"description": "How much of this month's allowance is used (0–100)"
|
||||
},
|
||||
"usedInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Input tokens used this month by all the church's products (null from a Hub before 2.0.1)"
|
||||
},
|
||||
"usedOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Output tokens used this month"
|
||||
},
|
||||
"capInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many input tokens the monthly allowance holds, if half of it went on input (an estimate: cached prompts cost less)"
|
||||
},
|
||||
"capOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many output tokens the allowance holds, if half of it went on output"
|
||||
},
|
||||
"renewsOn": {
|
||||
"description": "YYYY-MM-DD",
|
||||
@@ -67633,9 +67725,11 @@
|
||||
"enabled",
|
||||
"capReached",
|
||||
"available",
|
||||
"capCents",
|
||||
"usedCents",
|
||||
"usedPercent",
|
||||
"usedInputTokens",
|
||||
"usedOutputTokens",
|
||||
"capInputTokens",
|
||||
"capOutputTokens",
|
||||
"renewsOn",
|
||||
"helpers"
|
||||
],
|
||||
@@ -67695,8 +67789,15 @@
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"chargedCents": {
|
||||
"type": "number"
|
||||
"inputTokens": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"outputTokens": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"userId": {
|
||||
"type": [
|
||||
@@ -67710,7 +67811,8 @@
|
||||
},
|
||||
"required": [
|
||||
"uses",
|
||||
"chargedCents",
|
||||
"inputTokens",
|
||||
"outputTokens",
|
||||
"userId",
|
||||
"name"
|
||||
],
|
||||
@@ -67727,8 +67829,15 @@
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"chargedCents": {
|
||||
"type": "number"
|
||||
"inputTokens": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"outputTokens": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"helper": {
|
||||
"type": "string"
|
||||
@@ -67736,7 +67845,8 @@
|
||||
},
|
||||
"required": [
|
||||
"uses",
|
||||
"chargedCents",
|
||||
"inputTokens",
|
||||
"outputTokens",
|
||||
"helper"
|
||||
],
|
||||
"additionalProperties": false
|
||||
@@ -67752,8 +67862,15 @@
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"chargedCents": {
|
||||
"type": "number"
|
||||
"inputTokens": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"outputTokens": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"day": {
|
||||
"type": "string"
|
||||
@@ -67761,7 +67878,8 @@
|
||||
},
|
||||
"required": [
|
||||
"uses",
|
||||
"chargedCents",
|
||||
"inputTokens",
|
||||
"outputTokens",
|
||||
"day"
|
||||
],
|
||||
"additionalProperties": false
|
||||
@@ -68184,16 +68302,61 @@
|
||||
"type": "boolean",
|
||||
"description": "false: the Hub couldn't be reached just now"
|
||||
},
|
||||
"capCents": {
|
||||
"type": "number",
|
||||
"description": "The monthly allowance, in cents"
|
||||
},
|
||||
"usedCents": {
|
||||
"type": "number",
|
||||
"description": "Used this month, in cents (fractions of a cent)"
|
||||
},
|
||||
"usedPercent": {
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"description": "How much of this month's allowance is used (0–100)"
|
||||
},
|
||||
"usedInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Input tokens used this month by all the church's products (null from a Hub before 2.0.1)"
|
||||
},
|
||||
"usedOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Output tokens used this month"
|
||||
},
|
||||
"capInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many input tokens the monthly allowance holds, if half of it went on input (an estimate: cached prompts cost less)"
|
||||
},
|
||||
"capOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many output tokens the allowance holds, if half of it went on output"
|
||||
},
|
||||
"renewsOn": {
|
||||
"description": "YYYY-MM-DD",
|
||||
@@ -68236,9 +68399,11 @@
|
||||
"enabled",
|
||||
"capReached",
|
||||
"available",
|
||||
"capCents",
|
||||
"usedCents",
|
||||
"usedPercent",
|
||||
"usedInputTokens",
|
||||
"usedOutputTokens",
|
||||
"capInputTokens",
|
||||
"capOutputTokens",
|
||||
"renewsOn",
|
||||
"helpers"
|
||||
],
|
||||
@@ -68479,16 +68644,61 @@
|
||||
"type": "boolean",
|
||||
"description": "false: the Hub couldn't be reached just now"
|
||||
},
|
||||
"capCents": {
|
||||
"type": "number",
|
||||
"description": "The monthly allowance, in cents"
|
||||
},
|
||||
"usedCents": {
|
||||
"type": "number",
|
||||
"description": "Used this month, in cents (fractions of a cent)"
|
||||
},
|
||||
"usedPercent": {
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"description": "How much of this month's allowance is used (0–100)"
|
||||
},
|
||||
"usedInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Input tokens used this month by all the church's products (null from a Hub before 2.0.1)"
|
||||
},
|
||||
"usedOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Output tokens used this month"
|
||||
},
|
||||
"capInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many input tokens the monthly allowance holds, if half of it went on input (an estimate: cached prompts cost less)"
|
||||
},
|
||||
"capOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many output tokens the allowance holds, if half of it went on output"
|
||||
},
|
||||
"renewsOn": {
|
||||
"description": "YYYY-MM-DD",
|
||||
@@ -68531,9 +68741,11 @@
|
||||
"enabled",
|
||||
"capReached",
|
||||
"available",
|
||||
"capCents",
|
||||
"usedCents",
|
||||
"usedPercent",
|
||||
"usedInputTokens",
|
||||
"usedOutputTokens",
|
||||
"capInputTokens",
|
||||
"capOutputTokens",
|
||||
"renewsOn",
|
||||
"helpers"
|
||||
],
|
||||
@@ -68677,16 +68889,61 @@
|
||||
"type": "boolean",
|
||||
"description": "false: the Hub couldn't be reached just now"
|
||||
},
|
||||
"capCents": {
|
||||
"type": "number",
|
||||
"description": "The monthly allowance, in cents"
|
||||
},
|
||||
"usedCents": {
|
||||
"type": "number",
|
||||
"description": "Used this month, in cents (fractions of a cent)"
|
||||
},
|
||||
"usedPercent": {
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"description": "How much of this month's allowance is used (0–100)"
|
||||
},
|
||||
"usedInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Input tokens used this month by all the church's products (null from a Hub before 2.0.1)"
|
||||
},
|
||||
"usedOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Output tokens used this month"
|
||||
},
|
||||
"capInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many input tokens the monthly allowance holds, if half of it went on input (an estimate: cached prompts cost less)"
|
||||
},
|
||||
"capOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many output tokens the allowance holds, if half of it went on output"
|
||||
},
|
||||
"renewsOn": {
|
||||
"description": "YYYY-MM-DD",
|
||||
@@ -68729,9 +68986,11 @@
|
||||
"enabled",
|
||||
"capReached",
|
||||
"available",
|
||||
"capCents",
|
||||
"usedCents",
|
||||
"usedPercent",
|
||||
"usedInputTokens",
|
||||
"usedOutputTokens",
|
||||
"capInputTokens",
|
||||
"capOutputTokens",
|
||||
"renewsOn",
|
||||
"helpers"
|
||||
],
|
||||
@@ -68916,16 +69175,61 @@
|
||||
"type": "boolean",
|
||||
"description": "false: the Hub couldn't be reached just now"
|
||||
},
|
||||
"capCents": {
|
||||
"type": "number",
|
||||
"description": "The monthly allowance, in cents"
|
||||
},
|
||||
"usedCents": {
|
||||
"type": "number",
|
||||
"description": "Used this month, in cents (fractions of a cent)"
|
||||
},
|
||||
"usedPercent": {
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"description": "How much of this month's allowance is used (0–100)"
|
||||
},
|
||||
"usedInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Input tokens used this month by all the church's products (null from a Hub before 2.0.1)"
|
||||
},
|
||||
"usedOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Output tokens used this month"
|
||||
},
|
||||
"capInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many input tokens the monthly allowance holds, if half of it went on input (an estimate: cached prompts cost less)"
|
||||
},
|
||||
"capOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many output tokens the allowance holds, if half of it went on output"
|
||||
},
|
||||
"renewsOn": {
|
||||
"description": "YYYY-MM-DD",
|
||||
@@ -68968,9 +69272,11 @@
|
||||
"enabled",
|
||||
"capReached",
|
||||
"available",
|
||||
"capCents",
|
||||
"usedCents",
|
||||
"usedPercent",
|
||||
"usedInputTokens",
|
||||
"usedOutputTokens",
|
||||
"capInputTokens",
|
||||
"capOutputTokens",
|
||||
"renewsOn",
|
||||
"helpers"
|
||||
],
|
||||
@@ -69122,16 +69428,61 @@
|
||||
"type": "boolean",
|
||||
"description": "false: the Hub couldn't be reached just now"
|
||||
},
|
||||
"capCents": {
|
||||
"type": "number",
|
||||
"description": "The monthly allowance, in cents"
|
||||
},
|
||||
"usedCents": {
|
||||
"type": "number",
|
||||
"description": "Used this month, in cents (fractions of a cent)"
|
||||
},
|
||||
"usedPercent": {
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"description": "How much of this month's allowance is used (0–100)"
|
||||
},
|
||||
"usedInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Input tokens used this month by all the church's products (null from a Hub before 2.0.1)"
|
||||
},
|
||||
"usedOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Output tokens used this month"
|
||||
},
|
||||
"capInputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many input tokens the monthly allowance holds, if half of it went on input (an estimate: cached prompts cost less)"
|
||||
},
|
||||
"capOutputTokens": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "About how many output tokens the allowance holds, if half of it went on output"
|
||||
},
|
||||
"renewsOn": {
|
||||
"description": "YYYY-MM-DD",
|
||||
@@ -69174,9 +69525,11 @@
|
||||
"enabled",
|
||||
"capReached",
|
||||
"available",
|
||||
"capCents",
|
||||
"usedCents",
|
||||
"usedPercent",
|
||||
"usedInputTokens",
|
||||
"usedOutputTokens",
|
||||
"capInputTokens",
|
||||
"capOutputTokens",
|
||||
"renewsOn",
|
||||
"helpers"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user