Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: Add an Emoji in front of the summrized title. #4683

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/chains/summaryTitle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export const chainSummaryTitle = (messages: OpenAIChatMessage[]): Partial<ChatSt
return {
messages: [
{
content: '你是一名擅长会话的助理,你需要将用户的会话总结为 10 个字以内的标题',
content: '你是一名擅长会话的助理,你需要将用户的会话总结为 10 个字以内的标题,并且在标题前面放一个合适的可以代表该会话内容的emoji',
role: 'system',
},
{
content: `${messages.map((message) => `${message.role}: ${message.content}`).join('\n')}

请总结上述对话为10个字以内的标题,不需要包含标点符号,输出语言语种为:${lang}`,
请总结上述对话为10个字以内的标题,不需要包含标点符号,并且在标题前面放一个合适的可以代表该会话内容的emoji,输出语言语种为:${lang}`,
role: 'user',
},
],
Expand Down
Loading