mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-02 12:22:39 +02:00
feat: + summary
This commit is contained in:
parent
6848d189cf
commit
451b351055
1 changed files with 1 additions and 10 deletions
|
|
@ -20,20 +20,11 @@ class MetaGPTLLMAPI(OpenAIGPTAPI):
|
|||
"""MetaGPT LLM api"""
|
||||
|
||||
def __init__(self):
|
||||
self.__init_openai()
|
||||
self.llm = openai
|
||||
self.model = CONFIG.METAGPT_API_MODEL
|
||||
self.auto_max_tokens = False
|
||||
RateLimiter.__init__(self, rpm=self.rpm)
|
||||
|
||||
def __init_openai(self, *args, **kwargs):
|
||||
# openai.api_key = CONFIG.METAGPT_API_KEY
|
||||
# if CONFIG.METAGPT_API_BASE:
|
||||
# openai.api_base = CONFIG.METAGPT_API_BASE
|
||||
# if CONFIG.METAGPT_API_TYPE:
|
||||
# openai.api_type = CONFIG.METAGPT_API_TYPE
|
||||
# openai.api_version = CONFIG.METAGPT_API_VERSION
|
||||
self.rpm = int(CONFIG.RPM) if CONFIG.RPM else 10
|
||||
RateLimiter.__init__(self, rpm=self.rpm)
|
||||
|
||||
async def get_summary(self, memory: BrainMemory, max_words=200, keep_language: bool = False, **kwargs):
|
||||
summary = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue