Skip to content

feat: add BASE_URL to TencentHunYuan - #17367

Merged
yingfeng merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/model-provider-error-0724
Jul 24, 2026
Merged

yingfeng merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/model-provider-error-0724

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

Summary

feat: add BASE_URL to TencentHunYuan

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 24, 2026
@dcc123456
dcc123456 requested a review from wangq8 July 24, 2026 11:23
@dcc123456 dcc123456 added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels Jul 24, 2026
@dcc123456
dcc123456 marked this pull request as draft July 24, 2026 11:24
@dcc123456
dcc123456 marked this pull request as ready for review July 24, 2026 11:24
@coderabbitai

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The generic API key configuration now allows the Tencent HunYuan factory to render and support the base_url field.

Changes

Generic API key configuration

Layer / File(s) Summary
Base URL factory support
web/src/pages/user-setting/setting-model/provider-schema/field-config/generic-api-key-config.ts
Adds LLMFactory.TencentHunYuan to the factories that support base_url.

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

Suggested reviewers: xugangqiang

Poem

A rabbit hops through settings bright,
Tencent gains a URL field tonight.
One small list now knows the way,
Base URLs bloom in its display.
Wiggle ears—ship code away!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only repeats the title and lacks the brief purpose and background context required by the template. Expand the Summary with what issue this solves and any relevant background so reviewers understand why the change was made.
✅ 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 matches the change: adding BASE_URL support for TencentHunYuan.

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 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

The HunYuan provider backend already uses the openai/ LiteLLM route with a default base URL (https://api.hunyuan.cloud.tencent.com/v1), so exposing a configurable BASE_URL in the frontend is appropriate. This allows users to override the endpoint when using proxies or internal deployments.

Verified the enum value LLMFactory.TencentHunYuan exists in web/src/constants/llm.ts (line 40).

Simple, clean change — approved.

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 24, 2026
@yingfeng yingfeng added ci Continue Integration and removed ci Continue Integration labels Jul 24, 2026
@yingfeng
yingfeng merged commit bbd0dc5 into infiniflow:main Jul 24, 2026
15 checks passed
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. ci Continue Integration lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants