Skip to content

不支持配置ollama云端模型 #46

@terryvvan

Description

@terryvvan

模型id填的glm-5:cloud,baseurl保持默认http://localhost:11434,对话后报错:自定义 API (http://localhost:11434) 可能与 Claude Code SDK 不兼容。请检查 API 配置或尝试其他服务商。日志文件:C:\Users\Admin.workany\logs\workany.log
日志文件内容:
[2026-03-30T03:03:28.128Z] [INFO] [ClaudeAgent] [ClaudeAgent] Final env config: {
"ANTHROPIC_API_KEY": "(deleted)",
"ANTHROPIC_AUTH_TOKEN": "aa9dc3c918...",
"ANTHROPIC_BASE_URL": "http://localhost:11434",
"ANTHROPIC_MODEL": "glm-5"
}
[2026-03-30T03:03:28.129Z] [ERROR] [ClaudeAgent] [Claude Z2qDWUOnwsJzdgoun7ITR] Error occurred {
"error": {
"name": "Error",
"message": "Claude Code process exited with code 1",
"stack": "Error: Claude Code process exited with code 1\n at getProcessExitError (B:/~BUN/root/workany-api-x86_64-pc-windows-msvc.exe:1155:23)\n at exitHandler (B:/~BUN/root/workany-api-x86_64-pc-windows-msvc.exe:1285:47)\n at emit (node:events:98:22)\n at #handleOnExit (node:child_process:532:14)\n at processTicksAndRejections (native:7:39)"
},
"config": {
"baseUrl": "http://localhost:11434",
"apiKey": "configured",
"model": "glm-5"
},
"env": {
"ANTHROPIC_BASE_URL": "http://localhost:11434",
"ANTHROPIC_MODEL": "glm-5",
"hasAuthToken": true
}
}
[2026-03-30T03:03:28.129Z] [ERROR] [ClaudeAgent] [Claude Z2qDWUOnwsJzdgoun7ITR] Custom API compatibility error. Check if the API endpoint supports Claude Code SDK format.
看着似乎是不支持云端模型,模型名称填的glm-5,实际应该是glm-5:cloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions