package cn.iocoder.yudao.module.llm.controller.admin;

import cn.iocoder.yudao.module.llm.framework.backend.config.LLMBackendProperties;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/mp/open/")
@Validated
public class GetBackendConfig {

    @Resource
    private LLMBackendProperties llmBackendProperties;

    @RequestMapping("getBackendConfig")
    public String getBackendConfig() {
        return llmBackendProperties.getRagHealth();
    }
}
