Closed jessieweiyi closed 1 month ago
Memo: Screen shot of Generation configuration
Questions: For the i18n resource strings, I have added related texts for en/zh-hans/zh-hant. Do we have any processed to build up these? Otherwise, I am happy to use Transcribe to build them for other languages.
Actually we don't have any automated mechanism to do that. Thank you for translating into Chinese languages!
@wadabee When you have time, could you please review the frontend scripts 🙇 @jessieweiyi The review for frontend may be delayed because he is busy now, thank you for your understanding. (Personally, your implementation is LGTM!)
Memo: screenshot
Issue #, if available:
166
Description of changes:
This PR is to support users to config LLM Inference Parameters for each bot from UI.
During CI build time, the script located at
frontend/scripts/copy-config.py
copies the value of GENERATION_CONFIG/MISTRAL_GENERATION_CONFIG frombackend/app/config.py
based on the VITE_APP_ENABLE_MISTRAL environment variable to filefrontend/src/constants/defaultGenerationConfig.json
to be used as default generation config. This is to ensure backward compatibility, so that the value inbackend/app/config.py
is still the source of truth for configuring default value.New Bot
Existing Bot (without GenerationConfig value in DDB)
config.py
file is used as beforeQuestions: For the i18n resource strings, I have added related texts for en/zh-hans/zh-hant. Do we have any processed to build up these? Otherwise, I am happy to use Transcribe to build them for other languages.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.