MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

metagpt generate too many inconsistent invocation code between different source files

Open longweiii opened this issue 1 year ago • 5 comments

metagpt always generate inconsistent code between different source files. For example, in source file A, it contains a method a(p1,p2),this method have 2 parameters, but in source file B, it will generate invocation code for the method a(p1) which only contains 1 parameters of that method, and sometime in source file A, it will generate invocation code for a non-exist method in other source file, and there are too many such cases in project for me to fix them, is there any good way to avoid such inconsistent codes?

longweiii avatar Apr 12 '24 01:04 longweiii

And sometimes the generated source code will call a non-exist attribute of a object, these inconsistent codes make project unable to run.

longweiii avatar Apr 12 '24 02:04 longweiii

What's your LLM model, prefer gpt-4-turbo

seehi avatar Apr 12 '24 02:04 seehi

What's your LLM model, prefer gpt-4-turbo I use this LLM model 微信图片_20240412104847

longweiii avatar Apr 12 '24 02:04 longweiii

is gpt-4-turbo-preview different from gpt-4-turbo?

longweiii avatar Apr 12 '24 02:04 longweiii

gpt-4-turbo is the latest model. You can check these cases, they are all generated by metagpt, sometimes it's neccessary to adjust the code.

seehi avatar Apr 12 '24 03:04 seehi