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

RFC: Message Output Format #19

Open
MaikoTan opened this issue Dec 8, 2022 · 1 comment
Open

RFC: Message Output Format #19

MaikoTan opened this issue Dec 8, 2022 · 1 comment
Assignees

Comments

@MaikoTan
Copy link
Member

MaikoTan commented Dec 8, 2022

Summary

Currently, we just return the responded reply from OpenAI, according to some comments, it would be better to make the output format customizable.

Workaround

  • add an i18n entry as format, which value can be
  format: |
    <>
      <quote id={messageId} />
      <message>{response}</message>

      <message>Powered by ChatGPT ® OpenAI</message>
    </>
  • migrate return statement as return session.text('format', { ...session, response })
@MaikoTan MaikoTan self-assigned this Dec 8, 2022
@MaikoTan
Copy link
Member Author

MaikoTan commented Dec 9, 2022

I am not sure what is the exact format of quote here.
Also should the "quote reply" behaviour be the default behaviour here? Or should we just make it as another configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant