MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / __init__

Method __init__

bmtools/agent/translator.py:19–24  ·  view source on GitHub ↗
(self,
                 openai_api_key: str = None,
                 model_name: str = "gpt-3.5-turbo")

Source from the content-addressed store, hash-verified

17class Translator:
18
19 def __init__(self,
20 openai_api_key: str = None,
21 model_name: str = "gpt-3.5-turbo"):
22 self.openai_api_key = openai_api_key
23 self.model_name = model_name
24 self.init_flag = False
25
26 def init_model(self):
27 llm = self.create_openai_model(self.openai_api_key, self.model_name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected