You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: config.py
+9-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
importyaml
2
2
fromlog_writerimportlogger
3
3
4
+
4
5
defload_config():
5
6
"""
6
7
Loads the configuration from the 'config.yaml' file and sets the global variables accordingly.
@@ -15,10 +16,13 @@ def load_config():
15
16
config_content=yaml.safe_load(conf)
16
17
forkey, valueinconfig_content.items():
17
18
ifkey=="GENERATE_MODEL"andvalue=="gpt-4":
18
-
globals()[key] ="gpt-4-turbo-preview"# Force using gpt-4-turbo-preview if the user set the GENERATE_MODEL to gpt-4. Because gpt-4 is not longer supports json modes.
19
+
globals()[
20
+
key
21
+
] ="gpt-4-turbo-preview"# Force using gpt-4-turbo-preview if the user set the GENERATE_MODEL to gpt-4. Because gpt-4 is not longer supports json modes.
0 commit comments