File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,6 @@ export class GPTScript {
139139 if ( ! this . opts . URL ) {
140140 this . opts . URL = GPTScript . serverURL
141141 }
142-
143- if ( ! this . opts . Env ) {
144- this . opts . Env = [ ]
145- }
146- if ( this . opts . URL ) {
147- this . opts . Env . push ( `GPTSCRIPT_URL=${ this . opts . URL } ` )
148- }
149-
150- if ( this . opts . Token ) {
151- this . opts . Env . push ( `GPTSCRIPT_TOKEN=${ this . opts . Token } ` )
152- }
153142 }
154143 }
155144
@@ -411,14 +400,6 @@ export class GPTScript {
411400 try {
412401 await fetch ( `${ GPTScript . serverURL } /healthz` )
413402 this . opts . URL = GPTScript . serverURL
414- if ( ! this . opts . Env ) {
415- this . opts . Env = [ ]
416- }
417- this . opts . Env . push ( `GPTSCRIPT_URL=${ this . opts . URL } ` )
418- if ( this . opts . Token ) {
419- this . opts . Env . push ( `GPTSCRIPT_TOKEN=${ this . opts . Token } ` )
420- }
421-
422403 return
423404 } catch {
424405 if ( count === 0 ) {
You can’t perform that action at this time.
0 commit comments