Skip to content

Conversation

@rinfx
Copy link
Collaborator

@rinfx rinfx commented Oct 31, 2025

Ⅰ. Describe what this PR did

  1. 对代码进行重构,进行了模块化拆分,以适应从文本处理到多模态处理的转变
  2. 文本生成场景支持多模态输入检测

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews


Ⅰ. Describe what this PR did

  1. The code was restructured and modularized to adapt to the transition from text processing to multi-modal processing.
  2. Text generation scenarios support multi-modal input detection

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

rinfx added 5 commits October 29, 2025 13:56
Change-Id: I2757730d5c17a517b791eff6ac10e06bf4a12c8d
Co-developed-by: Cursor <[email protected]>
Change-Id: I430d34a44e6f6a034bcad2769fef60b017ff58cb
Co-developed-by: Cursor <[email protected]>
Change-Id: Id6629e75209484b7d28c4c9dc347a6cd057a4373
Co-developed-by: Cursor <[email protected]>
Change-Id: I3e202c165cc02f8a45113415bb4b1607f1cc02a0
Co-developed-by: Cursor <[email protected]>
Change-Id: I35a293d5f624677f51175feffa1651bfe45cabaa
Co-developed-by: Cursor <[email protected]>
@rinfx rinfx changed the title Ai sec refactor [feat] ai-security-guard refactor & support checking multimoadl input Oct 31, 2025
Change-Id: Ie427cff9cd0ba14a7078c6091a4cb4adbaa66999
Co-developed-by: Cursor <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 36.90338% with 542 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.05%. Comparing base (ef31e09) to head (e944ba8).
⚠️ Report is 770 commits behind head on main.

Files with missing lines Patch % Lines
...ai-security-guard/lvwang/common/text_generation.go 5.35% 157 Missing and 2 partials ⚠️
...-guard/lvwang/multi_modal_guard/text_generation.go 0.00% 139 Missing ⚠️
...m-go/extensions/ai-security-guard/config/config.go 51.81% 112 Missing and 21 partials ⚠️
...ai-security-guard/lvwang/common/request_builder.go 71.89% 37 Missing and 6 partials ⚠️
...ard/lvwang/text_moderation_plus/text_generation.go 46.57% 34 Missing and 5 partials ⚠️
...ugins/wasm-go/extensions/ai-security-guard/main.go 36.36% 20 Missing and 1 partial ⚠️
...asm-go/extensions/ai-security-guard/utils/utils.go 52.94% 7 Missing and 1 partial ⚠️

❌ Your patch status has failed because the patch coverage (36.90%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3075      +/-   ##
==========================================
+ Coverage   35.91%   43.05%   +7.14%     
==========================================
  Files          69       89      +20     
  Lines       11576    11806     +230     
==========================================
+ Hits         4157     5083     +926     
+ Misses       7104     6358     -746     
- Partials      315      365      +50     
Flag Coverage Δ
wasm-go-plugin-ai-security-guard 38.24% <36.90%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...asm-go/extensions/ai-security-guard/utils/utils.go 52.94% <52.94%> (ø)
...ugins/wasm-go/extensions/ai-security-guard/main.go 55.55% <36.36%> (ø)
...ard/lvwang/text_moderation_plus/text_generation.go 46.57% <46.57%> (ø)
...ai-security-guard/lvwang/common/request_builder.go 71.89% <71.89%> (ø)
...m-go/extensions/ai-security-guard/config/config.go 51.81% <51.81%> (ø)
...-guard/lvwang/multi_modal_guard/text_generation.go 0.00% <0.00%> (ø)
...ai-security-guard/lvwang/common/text_generation.go 5.35% <5.35%> (ø)

... and 97 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

rinfx added 3 commits October 31, 2025 13:49
Change-Id: Ie4289f1a902ed79820df60ed60a43fcf4795ba03
Co-developed-by: Cursor <[email protected]>
Change-Id: I1b3f9e4a41cea897206feb78d83ea3d3dda278cf
Co-developed-by: Cursor <[email protected]>
Change-Id: I7af2865922eb48d99c0243b660309af51f7e9d7f
Co-developed-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants