Bump version to 0.99.46

- Fix model type reporting for user providers in analytics table
- Fix undefined placeholder variable in duplicate cache settings migration
parent bbc0696c
......@@ -805,9 +805,10 @@ class Analytics:
# Check user providers first if user_filter is set (not global only)
if user_filter is not None and user_filter != -1:
provider_config = self.db.get_user_provider(user_filter, provider_id)
if provider_config:
provider_type = provider_config['type']
user_provider_data = self.db.get_user_provider(user_filter, provider_id)
if user_provider_data:
provider_config = user_provider_data['config']
provider_type = provider_config.get('type', 'unknown')
# Fall back to global config if not found as user provider
if not provider_config:
......
......@@ -4070,6 +4070,7 @@ def DatabaseManager__run_config_migrations(self, cursor, auto_increment, timesta
user_id = user_row[0]
# Get all global settings for this user, ordered by updated_at DESC
placeholder = '?' if self.db_type == 'sqlite' else '%s'
cursor.execute(f'''
SELECT id FROM user_cache_settings
WHERE user_id = {placeholder} AND provider_id IS NULL AND model_name IS NULL
......
......@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "aisbf"
version = "0.99.45"
version = "0.99.46"
description = "AISBF - AI Service Broker Framework || AI Should Be Free - A modular proxy server for managing multiple AI provider integrations"
readme = "README.md"
license = "GPL-3.0-or-later"
......
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