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

[Bug]: OllamDeepseek本地模型 系统提示词 激活bug #2105

Open
3 tasks done
DenneyTang opened this issue Feb 21, 2025 · 1 comment
Open
3 tasks done

[Bug]: OllamDeepseek本地模型 系统提示词 激活bug #2105

DenneyTang opened this issue Feb 21, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@DenneyTang
Copy link

Issue Checklist

  • I understand that issues are for feedback and problem solving, not for complaining in the comment section, and will provide as much information as possible to help solve the problem.
  • I've looked at pinned issues and searched for existing Open Issues, Closed Issues, and Discussions, no similar issue or discussion was found.
  • I've filled in short, clear headings so that developers can quickly identify a rough idea of what to expect when flipping through the list of issues. And not "a suggestion", "stuck", etc.

Platform

Windows

Version

v0.9.27

Bug Description

简言之在智能体设置 系统提示词后,如果给智能体输入的文本过长,比如超过1万token,会导致智能体丢失”系统提示词“,回复时它能知道你输入的是什么文本,但没有按你的要求干活。

但是有办法激活系统提示词,就是开始进入智能体时,不要直接丢你的文本给它,而是随便和他打个招呼,比如你说”你好“,因为文本很短,这个时候它的系统提示词开始运作,这个时候你再丢长文本给它就开始按你的要求刚活了。

另外,这个问题只有在OllamDeepseek本地模型会有,如果用线上模型比如硅基流动就不会,直接配好提示词,超长文本丢过去一样可以。

Steps To Reproduce

1、写好系统提示词;
2、输入给智能体一个长文本,最好大于1万token(无论以文本还是附件方式);
3、回复内容并不按要求回复;
4、如果输入一个短文本,比如”你好“,系统提示词开始激活后,后面的会话可以丢长文本给它;

Expected Behavior

无论输入的文本长度如何,都能按写好的提示词要求回复。

Relevant Log Output

Additional Context

No response

@DenneyTang DenneyTang added the bug Something isn't working label Feb 21, 2025
@ousugo
Copy link
Collaborator

ousugo commented Feb 21, 2025

这应该是你的文本超度超出了你本地 DeepSeek 模型的上下文长度限制,你应该先去查看你这个本地模型的上下文长度相关说明。这不是 CherryStudio 这边的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants