initialize_llm_prices

Django manage.py initialize_llm_prices command.

class smarter.apps.account.management.commands.initialize_llm_prices.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: SmarterCommand

Django manage.py initialize_llm_prices command.

Creates the LLM prices of the price catalog, smarter/apps/account/data/llm_prices.yaml, that don’t exist yet, so that a new platform’s charges have a cost, and its budgets that measure cost see them. A price that exists is kept as it is, so an operator’s prices survive every initialization. initialize_platform runs it.

add_arguments(parser)[source]

Add the command’s arguments.

handle(*args, **options)[source]

Create the missing prices.

help = "Create the LLM prices of the price catalog that don't exist yet."