From 36b66b72f07ed7245b3d5be71a4f4910c80a3011 Mon Sep 17 00:00:00 2001 From: "IGNY8 VPS (Salman)" Date: Sun, 16 Nov 2025 09:26:03 +0000 Subject: [PATCH] Step 6a & 6b: Clean up orphan code in __init__.py - Remove orphan exports: register_function, list_functions, get_model, get_max_tokens, get_temperature, MODEL_CONFIG - Remove unused imports: register_function, list_functions, get_model, get_max_tokens, get_temperature, MODEL_CONFIG - Keep only actively used exports and imports - get_function remains (used internally) --- backend/igny8_core/ai/__init__.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/backend/igny8_core/ai/__init__.py b/backend/igny8_core/ai/__init__.py index 23682693..ec2fe441 100644 --- a/backend/igny8_core/ai/__init__.py +++ b/backend/igny8_core/ai/__init__.py @@ -3,7 +3,7 @@ IGNY8 AI Framework Unified framework for all AI functions with consistent lifecycle, progress tracking, and logging. """ -from igny8_core.ai.registry import register_function, get_function, list_functions +from igny8_core.ai.registry import get_function from igny8_core.ai.engine import AIEngine from igny8_core.ai.base import BaseAIFunction from igny8_core.ai.ai_core import AICore @@ -27,11 +27,7 @@ from igny8_core.ai.constants import ( ) from igny8_core.ai.prompts import PromptRegistry, get_prompt from igny8_core.ai.settings import ( - MODEL_CONFIG, get_model_config, - get_model, - get_max_tokens, - get_temperature, ) # Don't auto-import functions here - let apps.py handle it lazily @@ -41,9 +37,7 @@ __all__ = [ 'AIEngine', 'BaseAIFunction', 'AICore', - 'register_function', 'get_function', - 'list_functions', # Validators 'validate_ids', 'validate_keywords_exist', @@ -64,10 +58,6 @@ __all__ = [ 'PromptRegistry', 'get_prompt', # Settings - 'MODEL_CONFIG', 'get_model_config', - 'get_model', - 'get_max_tokens', - 'get_temperature', ]