🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(glmCodingPlan): update default URL and add GLM-5.1 model (#13405)
Hardy560f598789da
diff --git a/packages/model-bank/src/aiModels/glmCodingPlan.ts b/packages/model-bank/src/aiModels/glmCodingPlan.tsindex e935cc85c9a..7050d08876c 100644--- a/packages/model-bank/src/aiModels/glmCodingPlan.ts+++ b/packages/model-bank/src/aiModels/glmCodingPlan.ts@@ -3,6 +3,25 @@ import { type AIChatModelCard } from '../types/aiModel';// ref: https://docs.z.ai/devpack/overviewconst glmCodingPlanChatModels: AIChatModelCard[] = [+ {+ abilities: {+ functionCall: true,+ reasoning: true,+ },+ contextWindowTokens: 204_800,+ description:+ "GLM-5.1 is Zhipu's latest flagship model, an enhanced iteration of GLM-5 with improved agentic engineering capabilities for complex systems engineering and long-horizon tasks.",+ displayName: 'GLM-5.1',+ enabled: true,+ id: 'GLM-5.1',+ maxOutput: 131_072,+ organization: 'Zhipu',+ releasedAt: '2026-03-27',+ settings: {+ extendParams: ['enableReasoning'],+ },+ type: 'chat',+ },{abilities: {functionCall: true,diff --git a/packages/model-bank/src/modelProviders/glmCodingPlan.ts b/packages/model-bank/src/modelProviders/glmCodingPlan.tsindex 35059a75f81..7fee3311184 100644--- a/packages/model-bank/src/modelProviders/glmCodingPlan.ts+++ b/packages/model-bank/src/modelProviders/glmCodingPlan.ts@@ -14,7 +14,7 @@ const GLMCodingPlan: ModelProviderCard = {settings: {disableBrowserRequest: true,proxyUrl: {- placeholder: 'https://api.z.ai/api/paas/v4',+ placeholder: 'https://open.bigmodel.cn/api/coding/paas/v4',},responseAnimation: {speed: 2,diff --git a/packages/model-runtime/src/providers/glmCodingPlan/index.test.ts b/packages/model-runtime/src/providers/glmCodingPlan/index.test.tsindex c090d50865b..15609a80ead 100644--- a/packages/model-runtime/src/providers/glmCodingPlan/index.test.ts+++ b/packages/model-runtime/src/providers/glmCodingPlan/index.test.ts@@ -5,7 +5,7 @@ import { testProvider } from '../../providerTestUtils';import { LobeGLMCodingPlanAI } from './index';const provider = ModelProvider.GLMCodingPlan;-const defaultBaseURL = 'https://api.z.ai/api/paas/v4';+const defaultBaseURL = 'https://open.bigmodel.cn/api/coding/paas/v4';testProvider({Runtime: LobeGLMCodingPlanAI,diff --git a/packages/model-runtime/src/providers/glmCodingPlan/index.ts b/packages/model-runtime/src/providers/glmCodingPlan/index.tsindex ff6a3a57877..55919160b6b 100644--- a/packages/model-runtime/src/providers/glmCodingPlan/index.ts+++ b/packages/model-runtime/src/providers/glmCodingPlan/index.ts@@ -4,7 +4,7 @@ import { createOpenAICompatibleRuntime } from '../../core/openaiCompatibleFactorimport { processMultiProviderModelList } from '../../utils/modelParse';export const LobeGLMCodingPlanAI = createOpenAICompatibleRuntime({- baseURL: 'https://api.z.ai/api/paas/v4',+ baseURL: 'https://open.bigmodel.cn/api/coding/paas/v4',chatCompletion: {handlePayload: (payload) => {const { model, thinking, ...rest } = payload;