diff --git a/src/gptscript.ts b/src/gptscript.ts index 4f1cf6e..0a1600c 100644 --- a/src/gptscript.ts +++ b/src/gptscript.ts @@ -139,17 +139,6 @@ export class GPTScript { if (!this.opts.URL) { this.opts.URL = GPTScript.serverURL } - - if (!this.opts.Env) { - this.opts.Env = [] - } - if (this.opts.URL) { - this.opts.Env.push(`GPTSCRIPT_URL=${this.opts.URL}`) - } - - if (this.opts.Token) { - this.opts.Env.push(`GPTSCRIPT_TOKEN=${this.opts.Token}`) - } } } @@ -411,14 +400,6 @@ export class GPTScript { try { await fetch(`${GPTScript.serverURL}/healthz`) this.opts.URL = GPTScript.serverURL - if (!this.opts.Env) { - this.opts.Env = [] - } - this.opts.Env.push(`GPTSCRIPT_URL=${this.opts.URL}`) - if (this.opts.Token) { - this.opts.Env.push(`GPTSCRIPT_TOKEN=${this.opts.Token}`) - } - return } catch { if (count === 0) {