Skip to content
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

solve aliyun lvwang content length limit problem #1569

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

rinfx
Copy link
Collaborator

@rinfx rinfx commented Dec 5, 2024

阿里云内容安全限制检测内容长度为2000,但是大模型的输出往往超过这个数值,在维持一个内容安全session的前提下,将一段文本切片分多次检测解决长度限制问题。

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.42%. Comparing base (ef31e09) to head (bb70a7c).
Report is 216 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1569      +/-   ##
==========================================
+ Coverage   35.91%   43.42%   +7.51%     
==========================================
  Files          69       76       +7     
  Lines       11576    12325     +749     
==========================================
+ Hits         4157     5352    +1195     
+ Misses       7104     6636     -468     
- Partials      315      337      +22     

see 69 files with indirect coverage changes

@johnlanni johnlanni changed the title solve alicloud lvwang content length limit problem solve aliyun lvwang content length limit problem Dec 5, 2024
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

@johnlanni johnlanni merged commit ce66ff6 into alibaba:main Dec 5, 2024
13 checks passed
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.

3 participants