feat: implement api/config endpoint

This commit is contained in:
hetao
2025-06-11 13:51:58 +08:00
parent c187ae511d
commit 8e68c13951
4 changed files with 91 additions and 20 deletions

View File

@@ -0,0 +1,13 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from pydantic import BaseModel, Field
from src.server.rag_request import RAGConfigResponse
class ConfigResponse(BaseModel):
"""Response model for server config."""
rag_config: RAGConfigResponse = Field(..., description="The config of the RAG")
configured_llms: dict[str, list[str]] = Field(..., description="The configured LLM")