@exreve/exk 1.0.79 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/agentSession.js +5 -1
- package/dist/ttc-cli.tar.gz +0 -0
- package/package.json +1 -1
package/dist/cli/agentSession.js
CHANGED
|
@@ -435,7 +435,8 @@ export class AgentSessionManager {
|
|
|
435
435
|
}
|
|
436
436
|
async createSession(handler) {
|
|
437
437
|
const { sessionId, projectPath, model } = handler;
|
|
438
|
-
|
|
438
|
+
// Normalize model name on entry — z.ai rejects lowercase 'glm-5.2' with 529.
|
|
439
|
+
const sessionModel = normalizeModelId(model || CLAUDE_CONFIG.model);
|
|
439
440
|
// Ensure project directory exists - prevents ENOENT errors when SDK spawns process
|
|
440
441
|
if (!existsSync(projectPath)) {
|
|
441
442
|
try {
|
|
@@ -712,6 +713,9 @@ export class AgentSessionManager {
|
|
|
712
713
|
// Resolve provider for multi-provider switching (Z.ai / MiniMax)
|
|
713
714
|
const resolved = resolveProvider(sessionModel);
|
|
714
715
|
console.log(`[agentSession] Resolved provider: ${resolved.provider} for model: ${sessionModel}`);
|
|
716
|
+
// Use the normalized model from resolveProvider so the SDK query() option
|
|
717
|
+
// matches the env vars (otherwise z.ai sees lowercase and returns 529).
|
|
718
|
+
effectiveModel = resolved.model;
|
|
715
719
|
effectiveApiKey = resolved.apiKey;
|
|
716
720
|
effectiveEnv = envForClaudeCodeChild(undefined, resolved);
|
|
717
721
|
effectiveProvider = resolved.provider;
|
package/dist/ttc-cli.tar.gz
CHANGED
|
Binary file
|