MCPcopy Index your code
hub / github.com/Integuru-AI/Integuru / get_instance

Method get_instance

integuru/util/LLM.py:9–15  ·  view source on GitHub ↗
(cls, model: str = None)

Source from the content-addressed store, hash-verified

7
8 @classmethod
9 def get_instance(cls, model: str = None):
10 if model is None:
11 model = cls._default_model
12
13 if cls._instance is None:
14 cls._instance = ChatOpenAI(model=model, temperature=1)
15 return cls._instance
16
17 @classmethod
18 def set_default_model(cls, model: str):

Calls

no outgoing calls

Tested by

no test coverage detected