提交 65acb6cb 编写于 作者: 小傅哥's avatar 小傅哥

feat:补充角色使用

上级 19659114
...@@ -20,6 +20,10 @@ public enum Role { ...@@ -20,6 +20,10 @@ public enum Role {
* 模型生成的内容,role位assistant * 模型生成的内容,role位assistant
*/ */
assistant("assistant"), assistant("assistant"),
/**
* 系统
*/
system("system"), system("system"),
; ;
......
...@@ -62,6 +62,7 @@ public class ApiTest { ...@@ -62,6 +62,7 @@ public class ApiTest {
"要求语言通俗易懂、幽默有趣,并且要以第一人称的口吻。") "要求语言通俗易懂、幽默有趣,并且要以第一人称的口吻。")
.build()); .build());
/* system 和 user 为一组出现 */
add(ChatCompletionRequest.Prompt.builder() add(ChatCompletionRequest.Prompt.builder()
.role(Role.system.getCode()) .role(Role.system.getCode())
.content("请问有什么需要帮助的吗") .content("请问有什么需要帮助的吗")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册