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

@ -9,7 +9,6 @@ import base64
from langchain_community.document_loaders import PyPDFLoader
from ... schema import Document, TextDocument, Metadata
from ... log_level import LogLevel
from ... base import FlowProcessor, ConsumerSpec, ProducerSpec
default_ident = "pdf-decoder"