MCPcopy Create free account
hub / github.com/AmberSahdev/Open-Interface / __init__

Method __init__

app/core.py:13–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12class Core:
13 def __init__(self):
14 self.status_queue = Queue()
15 self.interrupt_execution = False
16 self.settings_dict = Settings().get_dict()
17
18 self.interpreter = Interpreter(self.status_queue)
19
20 self.llm = None
21 try:
22 self.llm = LLM()
23 except OpenAIError as e:
24 self.status_queue.put(f'Set your OpenAPI API Key in Settings and Restart the App. Error: {e}')
25 except Exception as e:
26 self.status_queue.put(f'An error occurred during startup. Please fix and restart the app.\n'
27 f'Error likely in file {Settings().settings_file_path}.\n'
28 f'Error: {e}')
29
30 def execute_user_request(self, user_request: str) -> None:
31 self.stop_previous_request()

Callers

nothing calls this directly

Calls 4

SettingsClass · 0.90
InterpreterClass · 0.90
LLMClass · 0.90
get_dictMethod · 0.80

Tested by

no test coverage detected