Azure Wang

Results 5 issues of Azure Wang

#979 **Features** - updated MAX-TOKEN according to openai document - minior optimization of code style - fixed issues `RuntimeError: fail to reduce message length` **Influence** before gpt-3.5-turbo will raise error,...

**Bug description** I come across this issue. ```python File "/Users/azure/Documents/Workspace/Datasci/lib/python3.10/site-packages/metagpt/utils/text.py", line 31, in reduce_message_length raise RuntimeError("fail to reduce message length") RuntimeError: fail to reduce message length ``` **Bug solved method**...

**Bug description** ``` python team = Team(context=ctx) team.invest(investment=args.cost) team.hire( [ Manager(), Searcher(), Researcher(), Editor(), Reviewer(), Human(is_human=True), ] ) ``` `team.invest()` doesn't set action.llm.cost_manager, **Bug solved method** I think ContextMixin should...

**Feature description** `log_llm_stream` is been use for all llm_provider, and they all call the following `log_llm_stream` function stream response with async function often result in messed up logging. ```python logger...

**Features** see issue : #1109 llm stream_response alway been print regardless of debug flag I modified `logs.py` rather than `config2.py`. This is because log is been set via `define_log_level` rather...