We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9d188a + d04b6ba commit eb60045Copy full SHA for eb60045
amadeusgpt/main.py
@@ -8,6 +8,21 @@
8
from amadeusgpt.utils import *
9
10
warnings.filterwarnings("ignore")
11
+import os
12
+
13
+from amadeusgpt.analysis_objects.llm import (CodeGenerationLLM, DiagnosisLLM,
14
+ SelfDebugLLM, VisualLLM)
15
+from amadeusgpt.integration_module_hub import IntegrationModuleHub
16
17
+amadeus_fac = {}
18
19
20
+# using the config file to cache the amadeus instance
21
+# not sure if this is the best practice
22
+def create_amadeus(config: Config):
23
+ if str(config) not in amadeus_fac:
24
+ amadeus_fac[str(config)] = AMADEUS(config)
25
+ return amadeus_fac[str(config)]
26
27
from amadeusgpt.analysis_objects.llm import (CodeGenerationLLM, DiagnosisLLM,
28
SelfDebugLLM, VisualLLM)
0 commit comments