6 Commits

Author SHA1 Message Date
GitHub Actions
450faefaf9 Add API key authentication for proxy endpoints.
Support multiple API keys from config, env, and CLI, enforce auth on non-public endpoints, and pass keys through remote deploy verification.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-08 13:08:27 +08:00
GitHub Actions
c1a0fe2949 Switch remote deploy to vendored source builds
Move remote deployment to a vendored source bundle built on the target host via Docker so redeploys no longer require local cross-compilation or host Go installation.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-08 12:19:18 +08:00
GitHub Actions
bb27566e38 Add reusable remote deploy script
Automate the Linux binary upload, remote container rebuild, and health checks so the proxy can be redeployed to the server with a single command.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-08 07:53:27 +08:00
lutc5
1c349227a3 Rename product to Lingma Proxy 2026-05-06 15:03:04 +08:00
lutc5
74bbd8e6d2 feat: add OpenAI/Anthropic tools support with tool emulation
- Parse tools/tool_choice from OpenAI and Anthropic requests
- Inject tool definitions into system prompt via toolemulation
- Parse action blocks (```json action) from model responses
- Retry logic for forced tool_choice (any/required)
- Return proper tool_calls / tool_use in responses
- Support streaming tools via collect-and-replay pattern
- Add tool history projection (assistant tool_calls + tool results)
- Model ID normalization: use official names (Qwen3.6-Plus, etc.)
- Fix resolveSessionMode to use Fresh mode when tools present
2026-04-25 13:37:58 +08:00
coolxll
8020723985 chore: add Windows build and service scripts 2026-03-25 22:32:22 +08:00