-
Notifications
You must be signed in to change notification settings - Fork 765
Codex/llm #168
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
xiangfusheng1999-code
wants to merge
2
commits into
memovai:main
Choose a base branch
from
xiangfusheng1999-code:codex/LLM
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Codex/llm #168
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ## Coding Standards | ||
| - 遵守注释规范:”.docs/嵌入式C Doxygen 注释规范.md“ | ||
|
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the referenced standards path.
📌 Suggested fix ## Coding Standards
-- 遵守注释规范:”.docs/嵌入式C Doxygen 注释规范.md“
+- 遵守注释规范:`docs/嵌入式C Doxygen 注释规范.md`🤖 Prompt for AI Agents |
||
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocker: tagged public releases can ship embedded WiFi/API secrets without an explicit safeguard.
The firmware behavior text now confirms config is read from code, but release builds still publish binaries that may contain plaintext credentials (
main/mvp_config.h:1-36). This is an immediate secret-leak risk for any public tag release.🔒 Proposed fix (release warning + CI guard)
- name: Build firmware shell: bash run: | . $IDF_PATH/export.sh + # Block public release if obvious real secrets are still hardcoded in MVP config. + grep -Eq 'MVP_LLM_API_KEY\s+"sk-[^"]+"' main/mvp_config.h && { + echo "::error::Hardcoded DeepSeek API key detected in main/mvp_config.h. Replace with placeholder before tagging a release." + exit 1 + } idf.py set-target esp32s3 idf.py build @@ - ### 3. 固件行为 + ### 3. 固件行为 这是当前的 LLM MVP 固件。上电后会直接读取代码里的 WiFi 和 DeepSeek 配置, 自动联网、发起一次固定问题请求,并把结果打印到串口。 + + > ⚠️ 安全提示:该 MVP 从编译期宏读取配置。请勿发布包含真实 WiFi 密码或 API Key 的固件。🤖 Prompt for AI Agents