mirror of
https://github.com/aljazceru/enclava.git
synced 2025-12-18 07:54:29 +01:00
24 lines
915 B
Python
24 lines
915 B
Python
"""
|
|
Public API v1 package - for external clients
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
from ..v1.llm import router as llm_router
|
|
from ..v1.chatbot import router as chatbot_router
|
|
from ..v1.tee import router as tee_router
|
|
from ..v1.openai_compat import router as openai_router
|
|
|
|
# Create public API router
|
|
public_api_router = APIRouter()
|
|
|
|
# Include OpenAI-compatible routes (chat/completions, models, embeddings)
|
|
public_api_router.include_router(openai_router, tags=["openai-compat"])
|
|
|
|
# Include LLM services (public access for external clients)
|
|
public_api_router.include_router(llm_router, prefix="/llm", tags=["public-llm"])
|
|
|
|
# Include public chatbot API (external chatbot integrations)
|
|
public_api_router.include_router(chatbot_router, prefix="/chatbot", tags=["public-chatbot"])
|
|
|
|
# Include TEE routes (public TEE services if applicable)
|
|
public_api_router.include_router(tee_router, prefix="/tee", tags=["public-tee"]) |