🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Merge remote-tracking branch 'origin/main' into fix-research-bugs
shenchuchenga3b7b5c9e3dc
diff --cc metagpt/provider/openai_api.pyindex 7b2cd6220,756f8c483..fe41fb05f--- a/metagpt/provider/openai_api.py+++ b/metagpt/provider/openai_api.py@@@ -253,9 -253,7 +253,9 @@@ class OpenAILLM(BaseLLM)def _get_max_tokens(self, messages: list[dict]):if not self.auto_max_tokens:return self.config.max_token- return get_max_completion_tokens(messages, self.model, self.config.max_token)+ # FIXME+ # https://community.openai.com/t/why-is-gpt-3-5-turbo-1106-max-tokens-limited-to-4096/494973/3- return min(get_max_completion_tokens(messages, self.model, self.config.max_tokens), 4096)++ return min(get_max_completion_tokens(messages, self.model, self.config.max_token), 4096)@handle_exceptionasync def amoderation(self, content: Union[str, list[str]]):