Skip to content

feat: implement zhipu and alibaba coding plan providers#138

Merged
qinxuye merged 1 commit intoxorbitsai:mainfrom
bsbds:feat/more-providers
Mar 12, 2026
Merged

feat: implement zhipu and alibaba coding plan providers#138
qinxuye merged 1 commit intoxorbitsai:mainfrom
bsbds:feat/more-providers

Conversation

@bsbds
Copy link
Contributor

@bsbds bsbds commented Mar 12, 2026

No description provided.

@bsbds bsbds force-pushed the feat/more-providers branch 2 times, most recently from 1c9f0b4 to ccc33e8 Compare March 12, 2026 13:38
@bsbds bsbds force-pushed the feat/more-providers branch from ccc33e8 to 3ff861a Compare March 12, 2026 14:54
@qinxuye qinxuye mentioned this pull request Mar 12, 2026
69 tasks
Copy link
Contributor

@qinxuye qinxuye left a comment

Choose a reason for hiding this comment

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

LGTM

@qinxuye qinxuye merged commit cee1e49 into xorbitsai:main Mar 12, 2026
3 checks passed
tanbro added a commit to tanbro/xagent that referenced this pull request Mar 13, 2026
PR xorbitsai#138 (cee1e49) introduced a provider compatibility system that
incorrectly overrode user-configured base URLs with default values.

The problematic code used:
    base_url=model.base_url or default_base_url_for_provider(...)

This fails when base_url is an empty string ("") because Python's `or`
operator treats empty strings as falsy, causing the fallback to activate
even when the user explicitly configured a base URL.

For OpenAI-compatible providers like DashScope that store base_url=""
in the database, this caused requests to be sent to api.openai.com
instead of their configured endpoints. As a result, task execution
failed to start completely - tasks showed blank responses with no
backend execution activity.

This fix reverts to direct provider string comparison and removes the
fallback logic, trusting the database configuration as-is.

Fixes task execution regression introduced in cee1e49 (PR xorbitsai#138)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
qinxuye pushed a commit that referenced this pull request Mar 13, 2026
…ion (#141)

* fix: revert incorrect base_url fallback logic that breaks task execution

PR #138 (cee1e49) introduced a provider compatibility system that
incorrectly overrode user-configured base URLs with default values.

The problematic code used:
    base_url=model.base_url or default_base_url_for_provider(...)

This fails when base_url is an empty string ("") because Python's `or`
operator treats empty strings as falsy, causing the fallback to activate
even when the user explicitly configured a base URL.

For OpenAI-compatible providers like DashScope that store base_url=""
in the database, this caused requests to be sent to api.openai.com
instead of their configured endpoints. As a result, task execution
failed to start completely - tasks showed blank responses with no
backend execution activity.

This fix reverts to direct provider string comparison and removes the
fallback logic, trusting the database configuration as-is.

Fixes task execution regression introduced in cee1e49 (PR #138)


* fix: add coding plan providers

---------

Co-authored-by: tanbro <tanbro@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants