Skip to content

Commit

Permalink
Merge pull request #631 from njhale/chore/ui-run-file-env
Browse files Browse the repository at this point in the history
chore: set the run file env var when starting the ui
  • Loading branch information
njhale authored Jul 15, 2024
2 parents 9ca6e93 + b2b58bb commit d3cac6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/gptscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func (r *GPTScript) Run(cmd *cobra.Command, args []string) (retErr error) {
gptOpt.Env = append(gptOpt.Env, "GPTSCRIPT_SDKSERVER_CREDENTIAL_OVERRIDE="+strings.Join(r.CredentialOverride, ","))
}

args = append([]string{args[0]}, "--file="+file)
gptOpt.Env = append(gptOpt.Env, "UI_RUN_FILE="+file)

if len(args) > 2 {
args = append(args, args[2:]...)
Expand Down

0 comments on commit d3cac6e

Please sign in to comment.