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

Manus's thought return '\n\n' when using Deepseek models #930

Open
phoenine opened this issue Mar 25, 2025 · 1 comment
Open

Manus's thought return '\n\n' when using Deepseek models #930

phoenine opened this issue Mar 25, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@phoenine
Copy link

Bug Description

2025-03-25 09:06:04.298 | INFO | app.llm:ask_tool:760 - πŸ” Has content attr: True
2025-03-25 09:06:04.298 | INFO | app.llm:ask_tool:762 - πŸ” Content value:
2025-03-25 09:26:35.543 | INFO | app.agent.toolcall:think:96 - ✨ Manus's thoughts:

Bug solved method

using resoning_content in toolcall.py

        self.tool_calls = tool_calls = (
            response.tool_calls if response and response.tool_calls else []
        )

        #! checking is deepseek
        is_deepseek = hasattr(self.llm, 'model') and 'deepseek' in self.llm.model.lower()

        content = ""
        if response:
            if is_deepseek and hasattr(response, 'reasoning_content'):
                content = response.reasoning_content
                logger.info(f"yfπŸ” Using reasoning_content from deepseek model: {content[:100]}...")
            else:
                content = response.content if hasattr(response, 'content') else ""

Environment information

  • System version:
  • Python version:
  • OpenManus version or branch:
  • Installation method (e.g., pip install -r requirements.txt or pip install -e .):

Extra information

No response

@phoenine phoenine added the bug Something isn't working label Mar 25, 2025
@bugparty
Copy link

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