Skip to content

Improve ai plugins #1657

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

Merged
merged 7 commits into from
Jan 9, 2025
Merged

Improve ai plugins #1657

merged 7 commits into from
Jan 9, 2025

Conversation

rinfx
Copy link
Collaborator

@rinfx rinfx commented Jan 9, 2025

  1. ai-cache:修改响应模板,如果由cache直接返回,响应中模型名称改为 from-cache
  2. ai-statistic:metric增加consumer信息
  3. ai-security-guard:修改响应模板,如果由对话检测到风险,响应中模型名称改为 from-security-guard,同时添加usage信息
  4. ai-proxy:修复部分情况下会发生crash的问题
  5. ai-prompt-template:默认行为修改为生效

@johnlanni johnlanni changed the title Improve ai plugins 0109 Improve ai plugins Jan 9, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.63%. Comparing base (ef31e09) to head (a795f54).
Report is 258 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1657      +/-   ##
==========================================
+ Coverage   35.91%   43.63%   +7.72%     
==========================================
  Files          69       76       +7     
  Lines       11576    12358     +782     
==========================================
+ Hits         4157     5393    +1236     
+ Misses       7104     6628     -476     
- Partials      315      337      +22     

see 70 files with indirect coverage changes

Copy link
Collaborator

@johnlanni johnlanni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rinfx rinfx force-pushed the improve-ai-plugins-0109 branch from 865d4b4 to a795f54 Compare January 9, 2025 12:59
Copy link
Collaborator

@CH3CHO CH3CHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CH3CHO CH3CHO merged commit ea0d5e7 into alibaba:main Jan 9, 2025
13 checks passed
VinceCui pushed a commit to VinceCui/higress that referenced this pull request May 21, 2025
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.

4 participants