Open tappat225 opened 8 months ago
Solved. It turns out that there is no value check for the max_token which is calculated from the code max_token = TOKEN_MAX.get(model_name, 2048) - reserved - 100
. As I set MAX_TOKENS: 4096
in key.yaml
to 4096, it leads to the calculation result to be less than 0.
Solution
Set MAX_TOKENS
in key.yaml less than your model's max token. In this case, I reset MAX_TOKENS
to 1024 which solved my issue.
Maybe there should be a clear warning for this situation. 这种情况应该要加个警告或者自动调整参数
@shenchucheng Can you confirm if this issue has been resolved?
@shenchucheng Can you confirm if this issue has been resolved?
@geekan Fixxed by https://github.com/geekan/MetaGPT/pull/867.
Bug description
TypeError: unsupported operand type(s) for +: 'generator' and 'list' occured when I tried to run the researcher case. I thought it was something wrong with my environment, but I tried it in the docker container again and still got the same error.
Environment information
Snippets from the key.yaml
logs