Skip to content

Commit ccbb5a6

Browse files
committed
update
1 parent ec71524 commit ccbb5a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/internal/handlers/llm_proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (h *LLMProxyHandler) HandleLLMProxy(c *gin.Context) {
6666
func (h *LLMProxyHandler) prepareLLMRequest(c *gin.Context, slug, action string) (*services.TargetRequest, error) {
6767
// 1. 加载基础配置以获取 api_format,这是选择适配器的关键
6868
var proxyConfig models.ProxyConfig
69-
if err := h.db.Preload("APIKeys").Where("slug = ? AND is_active = ? AND config_type = ?", slug, true, "llm").First(&proxyConfig).Error; err != nil {
69+
if err := h.db.Preload("APIKeys").Where("slug = ? AND is_active = ? AND config_type = ?", slug, true, "LLM").First(&proxyConfig).Error; err != nil {
7070
return nil, fmt.Errorf("LLM service configuration with slug '%s' not found or inactive", slug)
7171
}
7272

0 commit comments

Comments
 (0)