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

Unify prompt config for user and system #151

Merged
merged 7 commits into from
Mar 12, 2023
Merged

Conversation

ConanChou
Copy link
Contributor

@ConanChou ConanChou commented Mar 11, 2023

a couple of things is done in this PR:

  1. user can setup user and system prompt with the --prompt or environment variable. For more detail, you can check the readme file or comments in the cli.py
  2. set a convention for all bilingual_book_maker (BMM) environment variables, so they all start with BBM_ prefix as a namespace. I didn't remove the previous supported environment variables, for backward compatibility purpose. I think they should be considered deprecated, we can remove them soon if the project maintainer Mr. @yihong0618 agrees :)
  3. minor fix for the readme number list
  4. minor fix for the kwargs invocation
  5. added test for json case

@yihong0618
Copy link
Owner

LGTM after a quick look
will test tonight(+8 timezone) thank you very much

@yihong0618 yihong0618 mentioned this pull request Mar 12, 2023
@yihong0618
Copy link
Owner

agree about 2

@yihong0618 yihong0618 merged commit ae3e3ba into yihong0618:main Mar 12, 2023
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

Successfully merging this pull request may close these issues.

2 participants