Skip to content

用deepseek api容易出现400错误 #59

Description

@xyh2005-qq

我用deepseek api做外链自动化发送时,经常出现API Error: 400
json
{"error":{"message":"This model's maximum context length is 131072 tokens. However, you requested 131275 tokens (131275 in the messages, 0 in the completion). Please reduce the length of the messages or completion.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}这个错误,需要重启对话,能不能加个按钮,舍弃先前的信息,这样就不会超出上下文了

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions