This commit represents a significant architectural improvement: - Completely replaced openwebui_connector with a more robust openwebui_base module - Centralized OpenWebUI API integration for better maintainability - Redesigned helpdesk_sale_order_ai to use the new openwebui_base module - Added support for multiple OpenWebUI providers and models - Improved error handling and response parsing - Added proper template management with openwebui_prompt_template - Fixed KeyError issues with safe template substitution - Streamlined API client initialization and usage
11 lines
368 B
Python
11 lines
368 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from . import helpdesk_ticket
|
|
from . import helpdesk_team
|
|
from . import sale_order
|
|
from . import ai_openwebui_client # Bridge model for OpenWebUI client
|
|
from . import ai_openwebui_prompt_template # Bridge model for OpenWebUI prompt templates
|
|
from . import res_config_settings
|
|
|
|
# Import views after all models are loaded
|
|
from .. import views
|