We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec71524 commit ccbb5a6Copy full SHA for ccbb5a6
backend/internal/handlers/llm_proxy.go
@@ -66,7 +66,7 @@ func (h *LLMProxyHandler) HandleLLMProxy(c *gin.Context) {
66
func (h *LLMProxyHandler) prepareLLMRequest(c *gin.Context, slug, action string) (*services.TargetRequest, error) {
67
// 1. 加载基础配置以获取 api_format,这是选择适配器的关键
68
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 {
+ if err := h.db.Preload("APIKeys").Where("slug = ? AND is_active = ? AND config_type = ?", slug, true, "LLM").First(&proxyConfig).Error; err != nil {
70
return nil, fmt.Errorf("LLM service configuration with slug '%s' not found or inactive", slug)
71
}
72
0 commit comments