We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
复现步骤:
SetSuspendState 的全称是 Set windows suspend state
setwindowssuspendstate是一个Windows API函数,它用于将计算机置于暂停状态。该函数接受两个参数,第一个参数指定计算机的暂停类型,第二个参数指定计算机的唤醒源。通过调用setwindowssuspendstate函数,可以方便地控制计算机的暂停和唤醒操作。
可以发现大小写和空格都丢失了
Update: 看了下是由于HtmlUtil.parseHtml(formData.html, AiConstants.MAX_INPUT_TOKEN_LENGTH, true)返回的文本会把所有的空格删掉并转成小写导致的 https://github.com/terwer/zhi/blob/7f45bc3e86a7fe5c681da0228aad153e3d678d29/libs/zhi-common/src/lib/htmlUtil.ts#L108 https://github.com/terwer/zhi/blob/7f45bc3e86a7fe5c681da0228aad153e3d678d29/libs/zhi-common/src/lib/htmlUtil.ts#L127
HtmlUtil.parseHtml(formData.html, AiConstants.MAX_INPUT_TOKEN_LENGTH, true)
或许可以直接把这里
siyuan-plugin-publisher/src/components/publish/form/PublishDescription.vue
Line 104 in 05a8712
systemMessage: formData.md
The text was updated successfully, but these errors were encountered:
fix: AI-generated desc lose space and case info terwer#775
e4f07f7
6fb23fb
Merge pull request #780 from cesaryuan/patch-1
8f7463d
fix: AI-generated desc lose space and case info #775
No branches or pull requests
复现步骤:
SetSuspendState 的全称是 Set windows suspend state
可以发现大小写和空格都丢失了
Update:
看了下是由于
HtmlUtil.parseHtml(formData.html, AiConstants.MAX_INPUT_TOKEN_LENGTH, true)
返回的文本会把所有的空格删掉并转成小写导致的https://github.com/terwer/zhi/blob/7f45bc3e86a7fe5c681da0228aad153e3d678d29/libs/zhi-common/src/lib/htmlUtil.ts#L108
https://github.com/terwer/zhi/blob/7f45bc3e86a7fe5c681da0228aad153e3d678d29/libs/zhi-common/src/lib/htmlUtil.ts#L127
或许可以直接把这里
siyuan-plugin-publisher/src/components/publish/form/PublishDescription.vue
Line 104 in 05a8712
改成
systemMessage: formData.md
The text was updated successfully, but these errors were encountered: