Skip to content

Update from api_base to base_url - #17158

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:bugfix/update-from-api_base-to-base_url
Jul 21, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:bugfix/update-from-api_base-to-base_url

Conversation

@wangq8

@wangq8 wangq8 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@wangq8
wangq8 requested review from Lynn-Inf and dcc123456 July 21, 2026 07:13
@wangq8 wangq8 added the ci Continue Integration label Jul 21, 2026
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code labels Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Provider configuration and instance-management flows now treat base_url as the canonical URL field. Initialization, verification, saving, payload splitting, and credential resolution no longer use api_base as a URL fallback.

Changes

Canonical base URL migration

Layer / File(s) Summary
Provider schema URL mappings
web/src/pages/user-setting/setting-model/provider-schema/..., web/src/interfaces/database/llm.ts
Provider fields and transforms now emit and consume base_url for Azure OpenAI, generic API-key, local LLM, OpenDataLoader, PaddleOCR, and MinerU configurations.
Form initialization and save lifecycle
web/src/pages/user-setting/setting-model/instance-card/hooks.tsx
Draft and saved forms, verification arguments, submit payloads, and dirty-tracking baselines use base_url without api_base fallbacks.
Payload splitting and credential resolution
web/src/pages/user-setting/setting-model/payload-utils.ts, web/src/pages/user-setting/setting-model/instance-card/models-section/*
api_base is retained as an extra payload field, while base URL credential resolution uses only form or persisted base_url values.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • infiniflow/ragflow#17132: Changes related provider verification and payload handling for the base_url and api_base fields.

Suggested labels: 🐞 bug

Suggested reviewers: dcc123456, lynn-inf

Poem

I’m a rabbit with a URL to share,
base_url hops through forms everywhere.
Old aliases rest in the hay,
While payloads choose the cleaner way.
Hop, hop—canonical fields win!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning No pull request description was provided, so the required Summary section and context are missing. Add a Summary section that briefly explains the PR goal, background context, and what behavior changed.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: replacing api_base with base_url across the affected settings flow.

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.

@wangq8
wangq8 merged commit a6c3dd1 into infiniflow:main Jul 21, 2026
3 checks passed
ondery added a commit to ondery/ragflow that referenced this pull request Jul 28, 2026
…er type fail

Two remaining verify-path fixes after infiniflow#17158 (api_base -> base_url rename)
and infiniflow#17364/infiniflow#17397 (empty-catalog remote model discovery) landed on main:

- useVerifyProvider now accepts a modelInfoRef carrying the models selected
  in the List-models picker (not registered as form fields) and folds them
  into the verify payload, so local/compatible providers no longer verify
  against an empty model_info.
- _record_model_verify_failure records FAIL without overwriting a prior
  SUCCESS for the same llm_name. model_info is unrolled into one
  factory_llms entry per capability type, so a later type failure must not
  erase an earlier successful capability result.
- Wrap Embedding/Chat model construction in try/except so an init failure
  is recorded as a per-model FAIL instead of aborting the whole verify.

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:M This PR changes 30-99 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants