Adds the ability to connect to OpenAI, Mistral, Google, Cohere, Together, Fireworks, and Perplexity from the Studio chat interface. - Provider configs stored in SQLite (no API keys persisted) - RSA-2048 key pair generated at startup for client-side key encryption - httpx proxy client streams SSE responses in OpenAI-compatible format - New /api/providers routes: registry, CRUD, test, models - /v1/chat/completions routes to external provider when provider fields present - Integration test suite covering CRUD, connection, model listing, and inference - Frontend spec doc with full API contract
28 lines
886 B
Python
28 lines
886 B
Python
# SPDX-License-Identifier: AGPL-3.0-only
|
|
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
|
|
|
|
"""
|
|
API Routes
|
|
"""
|
|
|
|
from routes.training import router as training_router
|
|
from routes.models import router as models_router
|
|
from routes.inference import router as inference_router
|
|
from routes.datasets import router as datasets_router
|
|
from routes.auth import router as auth_router
|
|
from routes.data_recipe import router as data_recipe_router
|
|
from routes.export import router as export_router
|
|
from routes.training_history import router as training_history_router
|
|
from routes.providers import router as providers_router
|
|
|
|
__all__ = [
|
|
"training_router",
|
|
"models_router",
|
|
"inference_router",
|
|
"datasets_router",
|
|
"auth_router",
|
|
"data_recipe_router",
|
|
"export_router",
|
|
"training_history_router",
|
|
"providers_router",
|
|
]
|