Skip to content

Commit 333bbf6

Browse files
committed
fix: update LLM server configuration check to allow for additional model configuration
1 parent bcd5b46 commit 333bbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/pkg/providers/providers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func NewProviderController(cfg *config.Config, docker docker.DockerClient) (Prov
6262
providers[provider.Type()] = provider
6363
}
6464

65-
if cfg.LLMServerURL != "" && cfg.LLMServerModel != "" {
65+
if cfg.LLMServerURL != "" && (cfg.LLMServerModel != "" || cfg.LLMServerConfig != "") {
6666
provider, err := custom.New(cfg)
6767
if err != nil {
6868
return nil, fmt.Errorf("failed to create custom provider: %w", err)

0 commit comments

Comments
 (0)