feat: add prompt configuration for AI settings#1501
feat: add prompt configuration for AI settings#1501MakiWinster72 wants to merge 6 commits intoapache:mainfrom
Conversation
Move prompt configuration from "AI Settings" to "AI Assistant" > "Settings". Added tab-like switcher under AI Assistant title: Conversations Settings Currently only Prompt setting is available.
|
@MakiWinster72 Great, it is also necessary to maintain consistency in the UI, like "Community -> Rules -> Policies"
|
|
@fenbox Oh, I should have reviewed the other pages more carefully. It should be consistent in style now
|
| prompt_config: { | ||
| zh_cn: historyConfigRef.current?.prompt_config?.zh_cn || '', | ||
| en_us: historyConfigRef.current?.prompt_config?.en_us || '', | ||
| }, |
There was a problem hiding this comment.
This is related to configuring the global model, prompt_config should be done in a new separate API
|
Thanks for the correction. At first I only considered Chinese and English, but it should be fine now. pls check at your time. |
| const isZh = lang?.toLowerCase().startsWith('zh'); | ||
| return isZh ? promptConfig.zh_cn || '' : promptConfig.en_us || ''; | ||
| }; | ||
|
|
There was a problem hiding this comment.
Normally, the content entered by the user does not need to be translated, is it necessary to load according to the locale?
@fenbox What about your opinion?
There was a problem hiding this comment.
@shuashuai The input does not need to be translated, and the chat output will be in the user's set interface language.
There was a problem hiding this comment.
@MakiWinster72 Just keep the content filled in by the user, and there is no need to do internationalization
| conversations: | ||
| tabs: | ||
| conversations: Conversations | ||
| settings: Settings |
There was a problem hiding this comment.
Navigation menus are placed in nav_menus for easy reuse and unified management





I added prompt configuration in AI settings
now admin can edit prompt in "Admin" > "Intelligence" > "AI Settings".
This will display the prompt corresponding to each language in different languages, but currently I have only implemented Chinese and English.
2026-02-11.01-53-49.mp4
English
Chinese
By the way, I also changed the Chinese translation of “intelligence” from “智力” to “智能,” because “智力” is more like the noun “IQ” or “smartness,” used for humans or animals.