Commit Graph

11 Commits

Author SHA1 Message Date
lingyuzeng
649958677e fix: spoof ollama streaming responses for tool calls 2026-03-22 20:15:30 +08:00
lingyuzeng
7a718d8983 fix: rewrite vllm tool calls from reasoning content 2026-03-22 19:56:45 +08:00
lingyuzeng
8eb7b25ec9 fix: normalize ollama tool calls from content and thinking 2026-03-22 19:54:47 +08:00
lingyuzeng
3f51c4a6b4 fix: add content-sanitizer to strip think blocks and orphan closing tags from all responses 2026-03-22 19:00:53 +08:00
lingyuzeng
6c097fceb2 build: add Dockerfile and .dockerignore for containerized deployment 2026-03-22 18:41:15 +08:00
lingyuzeng
ce99e8b418 feat: implement Stream Spoofing interceptor and robust format preservation patches 2026-03-22 17:55:47 +08:00
hotwa
ebd73e1c69 feat: add macOS LaunchAgent install/uninstall scripts
- Add install-launchagent.sh for auto-start on boot
- Add uninstall-launchagent.sh for service removal
- Update README.md with deployment instructions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 16:02:40 +08:00
hotwa
829682b98a feat: forward Authorization header from request to downstream
Prioritize Authorization header from incoming request over environment
variable, allowing per-request API key routing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 15:53:24 +08:00
hotwa
587e319520 feat: add Osaurus API authentication support
- Add OSAURUS_API_KEY config for Bearer token authentication
- Handle Osaurus streaming format responses even with stream: false
- Update .env.example with Osaurus configuration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 15:20:40 +08:00
hotwa
2451c35f9d feat: add bidirectional tool_calls normalization
- Add request-normalizer.ts to fix malformed tool_calls from clients
  - Ensure 'id' field exists (auto-generate if missing)
  - Ensure 'type: "function"' field exists
  - Convert 'arguments' string to object (Ollama expects object, not string)

- Update response-rewriter.ts for Ollama native tool_calls
  - Add missing 'type' field to tool_calls
  - Remove Ollama-specific 'function.index' field

- Fix types/ollama.ts: arguments should be object, not string

This enables multi-turn conversations with tool_calls history from OpenClaw
to work correctly with Ollama API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 14:00:59 +08:00
lingyuzeng
ba7d42da13 first commit 2026-03-22 13:16:22 +08:00