ModelEngine-Group / ModelEngine-Group/fit-framework

兼容系统提示词为空会报错的大模型

Open
#193 0 comments 0 reactions 1 assignee View on GitHub

@loveTsong is already working on this.

Since Jul 4, 2025.

status: waiting-for-triage type: bug
Dominant language
Java
Stars
2.1k
Forks
335
PR merge metrics
No merged PRs in 30d

Description

问题摘要 / Issue Summary

需要过滤系统提示词为空的场景,当前会发送空的系统提示词给到大模型,目前发现有大模型会校验不通过。

版本信息 / Version Information

v3.5.0-M3

浏览器 / Browser

No response

操作系统 / Operating System

None

发生了什么?/ What happened?

系统提示词为空的场景,当前会发送空的系统提示词给到大模型,目前发现有大模型会校验不通过。导致调用大模型失败。
-- 当前发现的对应的大模型为Qwen2.5-32B-Instruct

期望的行为 / Expected Behavior

保证通用性,兼容该场景,保证这种情况的大模型能够调用成功。

重现步骤 / Steps to Reproduce
  1. 创建应用
  2. 配置一个会校验系统提示词内容为空不通过的大模型
  3. 保证大模型节点的系统提示词为空
  4. 对话
相关日志 / Relevant Logs
{
	"error": "Request param content len should not be 0",
	"error_type": "Input Validation Error"
}
额外信息 / Additional Context

No response

确认事项 / Confirmations
  • 我已经搜索了现有的issues,确认这不是重复问题
    I have searched existing issues and confirmed this is not a duplicate

  • 我已经阅读了项目文档和 FAQ
    I have read the project documentation and FAQ

  • 我提供的信息准确完整
    The information I provided is accurate and complete

  • 我愿意协助测试问题修复 (可选)
    I'm willing to help test the bug fix (optional)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.