(20241216) Payments requesting started, callback noting started.
This commit is contained in:
+16
-3
@@ -65,7 +65,8 @@ from utils_v2.goog.gmail.gmail_client import AsyncGMailClient
|
||||
# Core Controller Models:
|
||||
from controllers.core.message import CoreMessageController
|
||||
from controllers.core.auth_token import CoreAuthTokenController
|
||||
from controllers.core.ai.llm import LLMController
|
||||
from controllers.core.ai.llm import CoreLLMController
|
||||
from controllers.core.payment import CorePaymentController
|
||||
|
||||
# API Controller Models:
|
||||
from controllers.api.mail import MailController
|
||||
@@ -98,6 +99,8 @@ from api.blueprints.sms.send import sms_send_bp
|
||||
# from api.blueprints.chat.webhook import chat_webhook_bp
|
||||
from api.blueprints.software.auth import sw_auth_bp
|
||||
from api.blueprints.finstitutions.payments.auth import pg_auth_bp
|
||||
from api.blueprints.finstitutions.payments.request import pg_request_bp
|
||||
from api.blueprints.finstitutions.payments.callback import pg_callback_bp
|
||||
from api.blueprints.tech.chat_alerts import tech_chat_alert_bp
|
||||
from api.blueprints.test.callback import test_callback_bp
|
||||
from api.blueprints.ai.llm.invoke import llm_invoke_bp
|
||||
@@ -140,6 +143,8 @@ app.register_blueprint(sms_send_bp, url_prefix = f"/{MODULE_BASE}/sms")
|
||||
# app.register_blueprint(chat_webhook_bp, url_prefix = f"/{MODULE_BASE}/chat")
|
||||
app.register_blueprint(sw_auth_bp, url_prefix = f"/{MODULE_BASE}/software")
|
||||
app.register_blueprint(pg_auth_bp, url_prefix = f"/{MODULE_BASE}/finstitutions/payments")
|
||||
app.register_blueprint(pg_request_bp, url_prefix = f"/{MODULE_BASE}/finstitutions/payments")
|
||||
app.register_blueprint(pg_callback_bp, url_prefix = f"/{MODULE_BASE}/finstitutions/payments")
|
||||
app.register_blueprint(tech_chat_alert_bp, url_prefix = f"/{MODULE_BASE}/tech/alert")
|
||||
app.register_blueprint(test_callback_bp, url_prefix = f"/{MODULE_BASE}/test")
|
||||
app.register_blueprint(llm_invoke_bp, url_prefix = f"/{MODULE_BASE}/ai")
|
||||
@@ -334,7 +339,7 @@ async def app_startup(**kwargs):
|
||||
alert_url = current_app.script_data["alerts"]["url"],
|
||||
http_client = current_app.http_client,
|
||||
debug = enable_debugging,
|
||||
debug_prefix = "Message (CM) | ",
|
||||
debug_prefix = "AuthToken (CM) | ",
|
||||
debug_only_errors = True
|
||||
)
|
||||
current_app.core_message_controller = CoreMessageController(
|
||||
@@ -345,6 +350,14 @@ async def app_startup(**kwargs):
|
||||
debug_prefix = "Message (CM) | ",
|
||||
debug_only_errors = True
|
||||
)
|
||||
current_app.core_payment_controller = CorePaymentController(
|
||||
cache = current_app.module_cache,
|
||||
alert_url = current_app.script_data["alerts"]["url"],
|
||||
http_client = current_app.http_client,
|
||||
debug = enable_debugging,
|
||||
debug_prefix = "Pymnt. (CM) | ",
|
||||
debug_only_errors = True
|
||||
)
|
||||
|
||||
# ┏┓┏┓┳ ┏┓ ┓┓
|
||||
# ┣┫┃┃┃ ┃ ┏┓┏┓╋┏┓┏┓┃┃┏┓┏┓┏
|
||||
@@ -377,7 +390,7 @@ async def app_startup(**kwargs):
|
||||
# ┛
|
||||
|
||||
# For LLMs:
|
||||
current_app.llm = LLMController(
|
||||
current_app.llm = CoreLLMController(
|
||||
llm_creds = {
|
||||
"model": script_cred["openAi"]["model"],
|
||||
"openai_api_key": script_cred["openAi"]["openai_api_key"]
|
||||
|
||||
Reference in New Issue
Block a user