Port metering to new API, not tested. (#354)

- Port metering to new API
- Moved price list to configuration
- Added tg-set-token-costs and tg-show-token-costs utils.
This commit is contained in:
cybermaggedon 2025-04-28 21:26:38 +01:00 committed by GitHub
parent 5af7909122
commit 9508ac6c69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 249 additions and 144 deletions

View file

@ -45,6 +45,8 @@ setuptools.setup(
],
scripts=[
"scripts/tg-dump-msgpack",
"scripts/tg-delete-flow-class",
"scripts/tg-get-flow-class",
"scripts/tg-graph-show",
"scripts/tg-graph-to-turtle",
"scripts/tg-init-pulsar",
@ -54,24 +56,24 @@ setuptools.setup(
"scripts/tg-invoke-graph-rag",
"scripts/tg-invoke-llm",
"scripts/tg-invoke-prompt",
"scripts/tg-load-kg-core",
"scripts/tg-load-doc-embeds",
"scripts/tg-load-kg-core",
"scripts/tg-load-pdf",
"scripts/tg-load-text",
"scripts/tg-load-turtle",
"scripts/tg-processor-state",
"scripts/tg-save-kg-core",
"scripts/tg-put-flow-class",
"scripts/tg-save-doc-embeds",
"scripts/tg-save-kg-core",
"scripts/tg-set-prompt",
"scripts/tg-set-token-costs",
"scripts/tg-show-config",
"scripts/tg-show-flows",
"scripts/tg-show-flow-classes",
"scripts/tg-get-flow-class",
"scripts/tg-show-flows",
"scripts/tg-show-prompts",
"scripts/tg-show-token-costs",
"scripts/tg-show-tools",
"scripts/tg-start-flow",
"scripts/tg-stop-flow",
"scripts/tg-delete-flow-class",
"scripts/tg-put-flow-class",
"scripts/tg-set-prompt",
"scripts/tg-show-tools",
"scripts/tg-show-prompts",
]
)