Skip to content

feat: integrate ZhiPu GLM-5 via Anthropic-compatible proxy#2

Open
PrayerQX wants to merge 1 commit into
Aidenwu0209:mainfrom
PrayerQX:feat/zhipu-glm5-integration
Open

feat: integrate ZhiPu GLM-5 via Anthropic-compatible proxy#2
PrayerQX wants to merge 1 commit into
Aidenwu0209:mainfrom
PrayerQX:feat/zhipu-glm5-integration

Conversation

@PrayerQX

@PrayerQX PrayerQX commented Apr 7, 2026

Copy link
Copy Markdown
  • Add proxy.py: Full Anthropic Messages API → OpenAI/GLM format converter

    • SSE streaming with proper event types (message_start, content_block_delta, etc.)
    • tool_use / tool_result bidirectional conversion
    • Tool definition conversion (input_schema ↔ parameters)
    • Auto-loads .env for API key configuration
  • Add run.sh: One-click startup script

    • Uses --bare mode to skip OAuth login
    • Auto-starts proxy and sets environment variables
    • Configured for GLM-5 model
  • Fix preflightChecks.tsx: Skip connectivity check when using custom ANTHROPIC_BASE_URL

    • When proxy is configured, don't check api.anthropic.com reachability

- Add proxy.py: Full Anthropic Messages API → OpenAI/GLM format converter
  - SSE streaming with proper event types (message_start, content_block_delta, etc.)
  - tool_use / tool_result bidirectional conversion
  - Tool definition conversion (input_schema ↔ parameters)
  - Auto-loads .env for API key configuration

- Add run.sh: One-click startup script
  - Uses --bare mode to skip OAuth login
  - Auto-starts proxy and sets environment variables
  - Configured for GLM-5 model

- Fix preflightChecks.tsx: Skip connectivity check when using custom ANTHROPIC_BASE_URL
  - When proxy is configured, don't check api.anthropic.com reachability
@PrayerQX

PrayerQX commented Apr 7, 2026

Copy link
Copy Markdown
Author
  • Add proxy.py: Full Anthropic Messages API → OpenAI/GLM format converter

    • SSE streaming with proper event types (message_start, content_block_delta, etc.)
    • tool_use / tool_result bidirectional conversion
    • Tool definition conversion (input_schema ↔ parameters)
    • Auto-loads .env for API key configuration
  • Add run.sh: One-click startup script

    • Uses --bare mode to skip OAuth login
    • Auto-starts proxy and sets environment variables
    • Configured for GLM-5 model
  • Fix preflightChecks.tsx: Skip connectivity check when using custom ANTHROPIC_BASE_URL

    • When proxy is configured, don't check api.anthropic.com reachability
image

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.

2 participants