MemOS icon indicating copy to clipboard operation
MemOS copied to clipboard

fix: TypeError: Client.chat() got an unexpected keyword argument 'think'

Open starsalwaysineyes opened this issue 10 months ago • 1 comments

Pre-submission checklist | 提交前检查

  • [x] I have searched existing issues and this hasn't been mentioned before | 我已搜索现有问题,确认此问题尚未被提及
  • [x] I have read the project documentation and confirmed this issue doesn't already exist | 我已阅读项目文档并确认此问题尚未存在
  • [x] This issue is specific to MemOS and not a general software issue | 该问题是针对 MemOS 的,而不是一般软件问题

Bug Description | 问题描述

I encountered a TypeError when calling llm.generate() using the Ollama backend. This error seems to have appeared after a recent update to the Ollama Python library or the Ollama server. Error Traceback: File ".../src/memos/llms/ollama.py", line 67, in generate response = self.client.chat( TypeError: Client.chat() got an unexpected keyword argument 'think'

How to Reproduce | 如何重现

use ollama for LLM service

Environment | 环境信息

Python 3.11

Additional Context | 其他信息

No response

Willingness to Implement | 实现意愿

  • [ ] I'm willing to implement this myself | 我愿意自己解决
  • [ ] I would like someone else to implement this | 我希望其他人来解决

starsalwaysineyes avatar Jan 21 '26 02:01 starsalwaysineyes

This issue has been automatically marked as stale due to inactivity.

github-actions[bot] avatar Feb 22 '26 04:02 github-actions[bot]