You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reviewing files that changed from the base of the PR and between 9614605 and 8e1e8f2.
📒 Files selected for processing (1)
api/db/joint_services/tenant_model_service.py
📝 Walkthrough
Walkthrough
The PR modifies get_model_config_from_provider_instance in tenant_model_service.py to source the is_tools flag from the model's persisted extra data (model_extra) instead of the instance's extra fields (extra_fields) when a TenantModel record exists.
Changes
Model Configuration Data Source
Layer / File(s)
Summary
is_tools data source correction api/db/joint_services/tenant_model_service.py
When TenantModel exists, model_config["is_tools"] now retrieves its value from model_extra (model-level) rather than extra_fields (instance-level), correcting which persisted data source controls the setting.
Possibly related PRs
infiniflow/ragflow#15905: Updates the same tenant_model_service module to use ensure_opendataloader_from_env, part of related OpenDataLoader and tenant model plumbing changes.
Suggested labels
🐞 bug, size:S
Poem
A rabbit hops through data streams,
And finds where model_extra gleams,
No longer lost in instance fields,
The is_tools truth now reveals! 🐰✨
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
As title.
Type of change