Skip to content

fix(agent): inject model identity for Alibaba Coding Plan#2314

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-40b195db
Mar 21, 2026
Merged

fix(agent): inject model identity for Alibaba Coding Plan#2314
teknium1 merged 1 commit into
mainfrom
hermes/hermes-40b195db

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of PR #2304 by @ygd58. Closes #2300.

Alibaba Coding Plan API always returns glm-4.7 as the model name regardless of the requested model. This injects explicit model identity into the system prompt for alibaba-coding-plan providers only, so the agent correctly reports which model it is.

1 file, +12 lines. Authorship preserved.

@teknium1 teknium1 merged commit 713f2f7 into main Mar 21, 2026
1 check passed
teknium1 added a commit that referenced this pull request Mar 21, 2026
PR #2314 checked for provider names 'alibaba-coding-plan' and
'alibaba-coding-plan-anthropic' which don't exist in the provider
registry. The provider is always 'alibaba' — the condition was dead
code. Fixed to check self.provider == 'alibaba'.
teknium1 added a commit that referenced this pull request Mar 21, 2026
…rovider check (salvage #1748 + fix #2314)

fix: Alibaba/DashScope: preserve model dots, fix 401 auth, fix dead provider check (salvage #1748 + fix #2314)
outsourc-e pushed a commit to outsourc-e/hermes-agent that referenced this pull request Mar 26, 2026
PR NousResearch#2314 checked for provider names 'alibaba-coding-plan' and
'alibaba-coding-plan-anthropic' which don't exist in the provider
registry. The provider is always 'alibaba' — the condition was dead
code. Fixed to check self.provider == 'alibaba'.
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…ch#2314)

fix(agent): inject model identity for Alibaba Coding Plan
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
PR NousResearch#2314 checked for provider names 'alibaba-coding-plan' and
'alibaba-coding-plan-anthropic' which don't exist in the provider
registry. The provider is always 'alibaba' — the condition was dead
code. Fixed to check self.provider == 'alibaba'.
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…rovider check (salvage NousResearch#1748 + fix NousResearch#2314)

fix: Alibaba/DashScope: preserve model dots, fix 401 auth, fix dead provider check (salvage NousResearch#1748 + fix NousResearch#2314)
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…ch#2314)

fix(agent): inject model identity for Alibaba Coding Plan
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
PR NousResearch#2314 checked for provider names 'alibaba-coding-plan' and
'alibaba-coding-plan-anthropic' which don't exist in the provider
registry. The provider is always 'alibaba' — the condition was dead
code. Fixed to check self.provider == 'alibaba'.
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…rovider check (salvage NousResearch#1748 + fix NousResearch#2314)

fix: Alibaba/DashScope: preserve model dots, fix 401 auth, fix dead provider check (salvage NousResearch#1748 + fix NousResearch#2314)
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…ch#2314)

fix(agent): inject model identity for Alibaba Coding Plan
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
PR NousResearch#2314 checked for provider names 'alibaba-coding-plan' and
'alibaba-coding-plan-anthropic' which don't exist in the provider
registry. The provider is always 'alibaba' — the condition was dead
code. Fixed to check self.provider == 'alibaba'.
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…rovider check (salvage NousResearch#1748 + fix NousResearch#2314)

fix: Alibaba/DashScope: preserve model dots, fix 401 auth, fix dead provider check (salvage NousResearch#1748 + fix NousResearch#2314)
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…ch#2314)

fix(agent): inject model identity for Alibaba Coding Plan
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
PR NousResearch#2314 checked for provider names 'alibaba-coding-plan' and
'alibaba-coding-plan-anthropic' which don't exist in the provider
registry. The provider is always 'alibaba' — the condition was dead
code. Fixed to check self.provider == 'alibaba'.
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…rovider check (salvage NousResearch#1748 + fix NousResearch#2314)

fix: Alibaba/DashScope: preserve model dots, fix 401 auth, fix dead provider check (salvage NousResearch#1748 + fix NousResearch#2314)
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…ch#2314)

fix(agent): inject model identity for Alibaba Coding Plan
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
PR NousResearch#2314 checked for provider names 'alibaba-coding-plan' and
'alibaba-coding-plan-anthropic' which don't exist in the provider
registry. The provider is always 'alibaba' — the condition was dead
code. Fixed to check self.provider == 'alibaba'.
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…rovider check (salvage NousResearch#1748 + fix NousResearch#2314)

fix: Alibaba/DashScope: preserve model dots, fix 401 auth, fix dead provider check (salvage NousResearch#1748 + fix NousResearch#2314)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Alibaba Coding Plan Provider Returns Incorrect Model Identity

2 participants