Skip to content

Commit

Permalink
Adding support for more config properties
Browse files Browse the repository at this point in the history
  • Loading branch information
diaakasem authored and ido50 committed Oct 29, 2024
1 parent 55dde84 commit 5532917
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions libaiac/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,22 @@ func replaceEnvVars(conf Config) Config {
backendConfig.AWSProfile = replaceEnvVar(backendConfig.AWSProfile)
}

if backendConfig.AWSRegion != "" {
backendConfig.AWSRegion = replaceEnvVar(backendConfig.AWSRegion)
}

if backendConfig.URL != "" {
backendConfig.URL = replaceEnvVar(backendConfig.URL)
}

if backendConfig.DefaultModel != "" {
backendConfig.DefaultModel = replaceEnvVar(backendConfig.DefaultModel)
}

if backendConfig.APIVersion != "" {
backendConfig.APIVersion = replaceEnvVar(backendConfig.APIVersion)
}

conf.Backends[backendName] = backendConfig
}

Expand Down

0 comments on commit 5532917

Please sign in to comment.