Spaces:
Paused
Paused
Commit History
-
add deepseek direct via userToken
f137b9c
-
add deepseek via openrouter
0b327f4
-
row-proxy inicial
7fa88ca
-
feat: lowercase model ids, add glm-5, socks5 proxy pool, remove arm build
kao0312cbe30d3
-
feat: add Anthropic Messages API compatibility (/v1/messages)
Implement full Anthropic Messages API translation layer including: - Request/response model types (messages, content blocks, streaming events) - Claude model name resolution to GLM backend models - Streaming (SSE) and non-streaming response conversion - Thinking/reasoning block passthrough - Tool use (tool_call → tool_use) format translation - System prompt, tool_choice, and multi-turn conversation support4f59ab4 -
feat: add Claude-to-GLM model name mapping
Map Claude model names (opus, sonnet, haiku) to corresponding GLM models with automatic thinking and tools tag resolution. Default unknown models to glm-4.7 as fallback.3a315de -
fix: improve tool calling reliability with multi-format parsing and Delta pointer fix
- Enhance system prompt with Chinese instructions and few-shot examples for more reliable <tool_call> output from GLM models - Add fallback parsing for [TOOL]...[/TOOL], [TOOL_CALL]...[/TOOL_CALL], and markdown JSON block formats in prompt injection mode - Change Choice.Delta to *Delta pointer so omitempty correctly omits the field in non-streaming responses (fixes extra "delta":{} in JSON) - Convert tool_calls/tool messages to plain text for upstream z.ai API which doesn't support native tools field - Add comprehensive tests for all new parsing formats and serialization8646505 -
feat: support tool/function calling (OpenAI compatible)
Add tools and tool_choice fields to chat requests, parse upstream tool_call responses, and return them in OpenAI-compatible format with finish_reason=tool_calls. Includes builtin tools, test script, and unit tests.5a55e77
-
refactor: split internal package into domain-based sub-packages
Split the flat internal/ package into auth, config, filter, handler, logger, model, upstream, and version sub-packages by responsibility.48d903a