MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

Role 中使用的 Message 的 role 属性含义 和 OpenAILLM 中处理 Message 时对 role 属性含义理解不一致的问题

Open xugaoliang opened this issue 2 years ago • 2 comments

Role 中的 Message 的 role 属性通常赋值为 Role.profile ,其值如:SimpleCoder, AgentCreator 等。

OpenAILLM 中处理 Message 时,直接使用了 role 属性,但此时 role 要求应为 system,user, assistant 中的一种。

两者对 role 字段含义的不同解释将导致错误

xugaoliang avatar Jan 19 '24 09:01 xugaoliang

会导致什么错误?有没有例子?

voidking avatar Jan 22 '24 03:01 voidking

@garylin2099 Can you look at this question?

geekan avatar Mar 21 '24 07:03 geekan