We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
JSON parsing exception caused by security risk monitoring alerts.
Content security
"contentFilter":[{"level":1,"role":"user"}],"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提示语,感谢您的配合。"}
langchain4j-community-zhipu-ai
The text was updated successfully, but these errors were encountered:
Fix the JSON parsing exception returned by content security risk moni…
73acfc8
…toring. langchain4j#49
fix:
@JsonInclude(NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class ErrorResponse { private List<SensitiveFilter> contentFilter; private Map<String, String> error; public Map<String, String> getError() { return error; } public void setError(Map<String, String> error) { this.error = error; } public List<SensitiveFilter> getContentFilter() { return contentFilter; } public void setContentFilter(List<SensitiveFilter> contentFilter) { this.contentFilter = contentFilter; } } public class SensitiveFilter { private String role; private Integer level; public String getRole() { return role; } public void setRole(final String role) { this.role = role; } public Integer getLevel() { return level; } public void setLevel(final Integer level) { this.level = level; } }
Sorry, something went wrong.
No branches or pull requests
Describe the bug
JSON parsing exception caused by security risk monitoring alerts.
Content security
Log and Stack trace
Minimal Example to Reproduce
Expected behavior
Please complete the following information:
langchain4j-community-zhipu-ai
):The text was updated successfully, but these errors were encountered: