多轮对话的支持

#6
by cyd0806 - opened

感谢开源这么强的模型,但是我发现好像和qwen 1.0比起来很多调用方法改变了,请问在1.5版本中怎么进行多轮对话呢?

messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": ...},
    {"role": "assistant", "content": ...},
    {"role": "user", "content": ...}
]
jklj077 changed discussion status to closed
messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": ...},
    {"role": "assistant", "content": ...},
    {"role": "user", "content": ...}
]

你好,我想咨询是否可以有多个role,比如u1说一句话,u2说一句话,然后是根据u1、u2一起的对话做些分析?
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "u1", "content": ...},
{"role": "u2", "content": ...}
]

Qwen org

emm... It is not supported in this way. But I suppose you can put those conversations in the first user message, and then ask about them.

Sign up or log in to comment