Skip to content

Commit

Permalink
chore: stop setting GPTSCRIPT_ env vars for children
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Sep 27, 2024
1 parent c4a6da1 commit 7cc23f5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gptscript/gptscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ def __init__(self, opts: GlobalOptions = None):
if not (self.opts.URL.startswith("http://") or self.opts.URL.startswith("https://")):
self.opts.URL = f"http://{self.opts.URL}"

self.opts.Env.append("GPTSCRIPT_URL=" + self.opts.URL)

if self.opts.Token == "":
self.opts.Token = os.environ.get("GPTSCRIPT_TOKEN", "")
if self.opts.Token != "":
self.opts.Env.append("GPTSCRIPT_TOKEN=" + self.opts.Token)

def close(self):
GPTScript.__gptscript_count -= 1
Expand Down

0 comments on commit 7cc23f5

Please sign in to comment.