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

Method get_settings_values

app/llm.py:61–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self.model = ModelFactory.create_model(self.model_name, base_url, api_key, context)
60
61 def get_settings_values(self) -> tuple[str, str, str]:
62 model_name = self.settings_dict.get('model') or DEFAULT_MODEL_NAME
63 base_url = (self.settings_dict.get('base_url') or 'https://api.openai.com/v1/').rstrip('/') + '/'
64 api_key = self.settings_dict.get('api_key')
65
66 return model_name, base_url, api_key
67
68 def read_context_txt_file(self) -> str:
69 # Construct context for the assistant by reading context.txt and adding extra system information

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected