Skip to content

Commit aac46af

Browse files
committed
fix: extend env as a dict
Signed-off-by: Donnie Adams <[email protected]>
1 parent 685c1b9 commit aac46af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gptscript/opts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def merge(self, other: Self) -> Self:
2525
cp.BaseURL = other.BaseURL if other.BaseURL != "" else self.BaseURL
2626
cp.DefaultModel = other.DefaultModel if other.DefaultModel != "" else self.DefaultModel
2727
cp.DefaultModelProvider = other.DefaultModelProvider if other.DefaultModelProvider != "" else self.DefaultModelProvider
28-
cp.Env = (other.Env or []).extend(self.Env or [])
28+
cp.Env = {**(self.Env or {}), **(other.Env or {})}
2929
return cp
3030

3131
def toEnv(self):

0 commit comments

Comments
 (0)