Skip to content

Fix: get is_tools from model record - #15946

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
Lynn-Inf:fix/is-tools
Jun 11, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
Lynn-Inf:fix/is-tools

Conversation

@Lynn-Inf

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

As title.

Type of change

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

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jun 11, 2026
@coderabbitai

coderabbitai Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ff27b861-b860-4ffa-843c-c8e83d6e5dab

📥 Commits

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Labels

🐞 bug Something isn't working, pull request that fix bug. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants