Commit 39a9cb9e authored by Your Name's avatar Your Name

Fix: Replace deprecated get_database() with DatabaseRegistry.get_config_database()

parent 9a48c7a6
......@@ -617,8 +617,8 @@ class RequestHandler:
# Record context dimensions for model performance tracking
try:
from aisbf.database import get_database
db = get_database()
from aisbf.database import DatabaseRegistry
db = DatabaseRegistry.get_config_database()
context_config = context_config or {}
db.record_context_dimension(
provider_id=provider_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment