Skip to content

For no auth provider, list models will return empty - #19827

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix666
Sep 18, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix666

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: ac51c9c0-6737-41f6-a2cb-4cc769958063

📥 Commits

Reviewing files that changed from the base of the PR and between 7c44afe and 73e8a58.

📒 Files selected for processing (1)
  • internal/handler/providers.go

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The remote model fetch gate now checks only for a configured baseURL. The Bedrock-specific authentication override remains unchanged.

Changes

Remote model fetching

Layer / File(s) Summary
Remote fetch condition
internal/handler/providers.go
ListModels enables remote fetching when baseURL is non-empty, even when api_key is absent. Bedrock providers still use bedrockAPIKeyAuth.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: lynn-inf

Merge Risk: ⚪ Minimal · up to 73e8a

The gate change is provider-specific and does not introduce the suspected failure path. No actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning No pull request description was provided. The repository template requires a Summary section that explains the purpose and background of the change. Add a Summary section. Explain that ListModels should attempt a remote model fetch when baseURL is configured, even when api_key is absent, and describe the expected behavior for providers without authentication.
✅ 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. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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 refers to the changed list-model behavior for providers without authentication. It is concise and related to the main change.
  • Fix all pre-merge checks with AI

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

A rabbit found a model gate,
Where base URLs now open the gate.
No key in paw? The fetch may start,
Bedrock keeps its guarded part.
Hop by hop, the list is made.

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

@JinHai-CN JinHai-CN added the ci Continue Integration label Sep 18, 2026
@JinHai-CN
JinHai-CN marked this pull request as ready for review September 18, 2026 05:39
@JinHai-CN
JinHai-CN marked this pull request as draft September 18, 2026 06:09
@JinHai-CN
JinHai-CN marked this pull request as ready for review September 18, 2026 06:09
@JinHai-CN JinHai-CN added ci Continue Integration and removed ci Continue Integration labels Sep 18, 2026
@JinHai-CN
JinHai-CN merged commit ec09023 into infiniflow:main Sep 18, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant