support mistral

This commit is contained in:
usamimeri_renko 2024-04-25 13:47:31 +08:00
parent 4f14ee7ce1
commit ec7df8acdf
5 changed files with 101 additions and 13 deletions

View file

@ -100,3 +100,6 @@ class LLMConfig(YamlModel):
@classmethod
def check_timeout(cls, v):
return v or LLM_API_TIMEOUT
def get(self, key: str, default = None):
return getattr(self, key, default)