add examples/andriod_assistant framework

This commit is contained in:
better629 2024-01-25 16:07:33 +08:00
parent 81a5178e3c
commit fe0d27dde1
15 changed files with 473 additions and 0 deletions

View file

@ -127,6 +127,12 @@ class Config(CLIParams, YamlModel):
self.reqa_file = reqa_file
self.max_auto_summarize_code = max_auto_summarize_code
def set_other(self, other: dict):
self.other = other
def get_other(self, key: str):
return self.other.get(key)
def get_openai_llm(self) -> Optional[LLMConfig]:
"""Get OpenAI LLMConfig by name. If no OpenAI, raise Exception"""
if self.llm.api_type == LLMType.OPENAI: