Odysseus v1.0
This commit is contained in:
13
src/task_endpoint.py
Normal file
13
src/task_endpoint.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""Shared resolver for background-task AI endpoint (auto-naming, memory, sorting)."""
|
||||
|
||||
from src.endpoint_resolver import resolve_endpoint
|
||||
|
||||
|
||||
def resolve_task_endpoint(fallback_url=None, fallback_model=None, fallback_headers=None):
|
||||
"""Return (endpoint_url, model, headers) for background tasks.
|
||||
|
||||
Reads task_endpoint_id / task_model from admin settings.
|
||||
Falls back to the provided values when the setting is empty or the
|
||||
endpoint cannot be resolved.
|
||||
"""
|
||||
return resolve_endpoint("task", fallback_url, fallback_model, fallback_headers)
|
||||
Reference in New Issue
Block a user