Skip to content

Commit eb60045

Browse files
committed
Merge branch 'main' of github.com:AdaptiveMotorControlLab/AmadeusGPT-dev
2 parents c9d188a + d04b6ba commit eb60045

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

amadeusgpt/main.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@
88
from amadeusgpt.utils import *
99

1010
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)]
1126

1227
from amadeusgpt.analysis_objects.llm import (CodeGenerationLLM, DiagnosisLLM,
1328
SelfDebugLLM, VisualLLM)

0 commit comments

Comments
 (0)