Skip to content

fix(prompt): edit prompt page response schema not display #2700

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

china-zhz
Copy link
Contributor

Description

修复前:
提示詞在编辑的时候,输出结构没有回显,如下所示:
image
修复后:
image

How Has This Been Tested?

新建有输出结构的提示词后再进入编辑页面

@github-actions github-actions bot added the fix Bug fixes label May 16, 2025
@china-zhz china-zhz changed the title fix: 修复提示词输出结构无法回显问题 fix: issue-2454-修复提示词输出结构无法回显问题 May 16, 2025
@chenliang15405 chenliang15405 changed the title fix: issue-2454-修复提示词输出结构无法回显问题 fix(prompt): edit prompt page response schema not display May 21, 2025
@github-actions github-actions bot added the prompt Module: prompt label May 21, 2025
@chenliang15405
Copy link
Collaborator

Hi @china-zhz Thanks for you contribution
but the changed front-end code is not work for dbgpt, Could you update it? Maybe you can refer the web/README

@china-zhz
Copy link
Contributor Author

Hi @china-zhz Thanks for you contribution but the changed front-end code is not work for dbgpt, Could you update it? Maybe you can refer the web/README

是需要打包成静态文件放到packages/dbgpt_app模块下的static目录里吗吗

@china-zhz
Copy link
Contributor Author

代码已提交

@chenliang15405
Copy link
Collaborator

In order to ensure the stability of the code, would you be willing to test your code to verify its correctness?
I try test it and it has exception

china-zhz added 3 commits May 22, 2025 17:55
# Conflicts:
#	packages/dbgpt-app/src/dbgpt_app/static/web/404.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/404/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/chat/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/agent/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/components/create-app-modal/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/AwelLayout/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/NativeApp/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/RecommendQuestions/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/auto-plan/DetailsCard/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/auto-plan/PromptSelect/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/auto-plan/ResourceContent/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/auto-plan/ResourceContentV2/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/auto-plan/ResourcesCard/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/auto-plan/ResourcesCardV2/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/components/auto-plan/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/config/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/extra/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/app/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/database/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/dbgpts/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/flow/canvas/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/flow/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/flow/libro/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/knowledge/chunk/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/knowledge/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/models/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/prompt/add/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/prompt/edit/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/construct/prompt/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/evaluation/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/knowledge/graph/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/ChatDialog/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/Content/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/DislikeDrawer/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/Feedback/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/Header/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/InputContainer/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/ModelSelector/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/OptionIcon/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/Resource/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/components/Thermometer/index.html
#	packages/dbgpt-app/src/dbgpt_app/static/web/mobile/chat/index.html
@china-zhz
Copy link
Contributor Author

不好意思之前有些静态文件没有提交上去,现在合并了最新的代码

@chenliang15405
Copy link
Collaborator

不好意思之前有些静态文件没有提交上去,现在合并了最新的代码

Hi @china-zhz It seems there are some useless file changed(*.svg or json file). It's a bit strange, Could you provide the code simply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes prompt Module: prompt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants