fix: 修复 display_name 未定义导致 LLM 默认角色仅生效一次#297
Open
Anionex wants to merge 1 commit intoHaujetZhao:masterfrom
Open
fix: 修复 display_name 未定义导致 LLM 默认角色仅生效一次#297Anionex wants to merge 1 commit intoHaujetZhao:masterfrom
Anionex wants to merge 1 commit intoHaujetZhao:masterfrom
Conversation
LLMHandler.process_and_output 返回 LLMResult 时引用了未定义的 display_name,导致默认角色首次调用后抛出 NameError,WebSocket 消息循环终止,后续识别结果不再被处理。 将 display_name 替换为 role_config.name or RoleConfig.DEFAULT_ROLE_NAME, 与同类方法 process() 保持一致。
78baab1 to
3493fd0
Compare
5c3a56b to
3493fd0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LLMHandler.process_and_output返回LLMResult时引用了未定义的display_name变量,导致NameErrordisplay_name替换为role_config.name or RoleConfig.DEFAULT_ROLE_NAME,与同文件process()方法保持一致Test
LLM/default.py中process = True,连续多次语音识别,确认每次都经过 LLM 润色