Skip to content

Conversation

vuonghuuhung
Copy link
Contributor

Description

Fix function _ensure_model_exists when checking model name from model list cause the object parsed from api /api/tags from base url of ollama may not have attribute "name". I added attribute "model"

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Keep passing test cases

  • Unit Test
  • Test Script (please provide)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings

@CLAassistant
Copy link

CLAassistant commented May 14, 2025

CLA assistant check
All committers have signed the CLA.

@vuonghuuhung vuonghuuhung changed the title chore: check both model attribute Fix: Ollama checking model exists May 14, 2025
Copy link
Collaborator

@deshraj deshraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing.

@vuonghuuhung
Copy link
Contributor Author

vuonghuuhung commented May 22, 2025

Thanks for fixing.

My pleasure, can we merge it on next version, so that I may not have to patch them @deshraj .-.

@parshvadaftari parshvadaftari merged commit ff399e5 into mem0ai:main Aug 19, 2025
5 of 6 checks passed
acarbonetto pushed a commit to acarbonetto/mem0 that referenced this pull request Sep 2, 2025
thestumonkey pushed a commit to thestumonkey/mem0 that referenced this pull request Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants