61 Commits
Author SHA1 Message Date
Zebratic 71cb4d3f72 feat: integrate Pulse Analytics tracking for LLM Proxy
- Add Pulse Analytics script tag to root layout (data-domain=llm.xmr.network)
- Add server-side tracking for successful API calls (chat completions,
  completions, embeddings) via /api/track/server endpoint
- Add lib/pulse.ts tracking utility (fire-and-forget)
2026-03-20 13:12:05 +00:00
Zebratic 401a0ba0d7 feat: add /v1/audio/speech endpoint with API key auth 2026-03-18 04:29:32 +00:00
Zebratic 94b86e92ca feat: show Mosaic in dashboard model dropdowns (playground + models list) 2026-03-18 01:51:19 +00:00
Zebratic 9c9ff51b87 fix: support x-api-key header in Anthropic messages endpoint (Claude Code compat)
Claude Code sends x-api-key instead of Authorization Bearer. Now accepts both.
2026-03-18 01:31:58 +00:00
Zebratic 4c222c036a fix: Anthropic streaming - correct stop_reason and add content_block_start/stop for text
- stop_reason now correctly returns 'end_turn' for non-tool responses (was always 'tool_use')
- Added content_block_start event before first text delta
- Added content_block_stop event for text blocks
- Fixes Claude Code compatibility
2026-03-18 01:26:45 +00:00
Zebratic ffbcdf753b feat: add Mosaic support to Anthropic Messages handler (Claude Code compatibility)
- Mosaic routing in /v1/messages endpoint
- Identity injection for Anthropic-format requests
- Model field masking in both streaming and non-streaming Anthropic responses
- Analytics logged as logicalModelId='mosaic'
2026-03-18 01:17:27 +00:00
Zebratic 8f37b3cd4f feat: add Mosaic virtual model - smart multi-provider routing with identity protection
- Mosaic router: dynamically selects best backend model based on prompt complexity, size, and tool usage
- Identity injection: system prompt ensures model always identifies as Mosaic
- Response masking: model field rewritten to 'mosaic' in both streaming and non-streaming responses
- Analytics: logicalModelId='mosaic' for user stats, providerModelId tracks actual backend
- Models list: mosaic appears in /v1/models endpoint
- Backends: claude-opus-4-6, gpt-5.4, gpt-4.1, claude-sonnet-4-6, gpt-4o, deepseek-chat
2026-03-18 00:12:30 +00:00
Zebratic b229d873ef Revert "Integrate Mosaic model logic and update configuration for Claude Code"
This reverts commit 248fc1f824.
2026-03-17 23:57:03 +00:00
Zebratic 248fc1f824 Integrate Mosaic model logic and update configuration for Claude Code 2026-03-17 23:52:24 +00:00
Zebratic 9252feffe0 Fix: retry on upstream credit errors, fix model field in request logs 2026-03-17 21:06:59 +00:00
Zebratic c04ec83a63 feat: add VIDEO model type support (generation, UI, admin) 2026-03-16 13:36:49 +00:00
Zebratic e8c94f4222 feat: hide fine-tuned models, add provider icons to model picker 2026-03-14 21:37:26 +00:00
Zebratic cdb9ede4da fix: allow missing referer in demo-chat (Cloudflare strips it) 2026-03-14 21:30:56 +00:00
Zebratic 7f9df9b9af feat: admin dashboard with charts, revenue, top models 2026-03-14 21:11:08 +00:00
Zebratic 3fc802dc76 feat: inline hero chat demo with JS challenge bot protection 2026-03-14 21:09:23 +00:00
Zebratic e62419652d feat: redesign auth pages to match landing page theme 2026-03-14 21:07:58 +00:00
Zebratic c0ec2a8cbb feat: how-it-works page + per-tool setup guides 2026-03-14 20:51:05 +00:00
Zebratic db87ac01e1 feat: landing page overhaul - hero stats, live chat demo, quick start, rate comparison 2026-03-14 20:49:38 +00:00
Zebratic 8b0b225eb2 feat: landing page overhaul - live demo, stats, quick start, comparison, how-it-works 2026-03-14 20:45:31 +00:00
Zebratic a0187134e1 fix: replace AI-generated provider icons with real brand SVGs
OpenAI, Anthropic: already correct (simple-icons)
xAI: replaced with real X logo from simple-icons
DeepSeek: real whale logo from deepseek.com favicon
Perplexity: real logo from simple-icons
ElevenLabs: real logo from simple-icons
Added Google Gemini logo
2026-03-14 20:40:17 +00:00
Zebratic 9194ef9d11 fix: eslint no-explicit-any in api-key-auth ObjectId cast 2026-03-14 18:45:01 +00:00
Zebratic dd089d016c fix: handle ObjectId/string mismatch in API key auth
userId stored as string in api_keys/subscriptions but as ObjectId in
users collection. Now tries both formats for lookups.
2026-03-14 18:34:50 +00:00
Zebratic e1c4137b6b fix: convert string IDs to ObjectId for MongoDB lookups
Fixes dashboard crash when subscription.plan is null due to string vs ObjectId mismatch
2026-03-14 11:10:02 +00:00
Zebratic 79d0cfe0a0 Redesign landing page, update pricing plans
- Epic landing page with animated gradient mesh background, bento grid features,
  count-up stats, animated code block, how-it-works section, and columned footer
- New pricing: Pro (9), Max (9, highlighted), Unlimited (9) — no free tier
- Updated seed script with new plans (removes free/enterprise)
- Updated standalone /pricing page to match
- All mobile-first and responsive
2026-03-14 10:03:27 +00:00
Zebratic c34a1a7a78 fix: convert MongoDB ObjectId to string in normalizeDocument
Fixes admin/users/[object Object] 404 when clicking View on users
2026-03-14 09:56:23 +00:00
Zebratic 6dd13507a7 Redesign landing page: mobile-first, pricing section, responsive nav 2026-03-14 09:46:59 +00:00
Zebratic 348de00c3a feat: add Dockerfile and standalone output for Coolify deployment
- Dockerfile with multi-stage build (deps, build, runner)
- Standalone output for minimal Docker image
- .dockerignore to exclude unnecessary files
- Added react-is dependency for recharts
2026-03-14 04:53:44 +00:00
Zebratic e43c81250f feat: add tool call support to Anthropic adapter and sticky API key sessions
- Rewrite Anthropic adapter with full bidirectional tool translation:
  - OpenAI tools/tool_choice → Anthropic tools format
  - tool_calls ↔ tool_use content blocks
  - role:"tool" messages ↔ tool_result content blocks
  - Real SSE streaming (replaces fake single-chunk streaming)
- Fix message ordering: tool_result before text in user messages
- Merge consecutive user messages (Anthropic alternating role requirement)
- Handle null/empty assistant content for tool-only messages
- Add tool_use/tool_result to Anthropic validation schema
- Add "any" to tool_choice validation in chat completion schema
- Add sticky API key store (MongoDB-backed, 30-min TTL) for consistent
  key selection across Claude Code sessions
- Apply sticky key affinity in all v1 request handlers
2026-03-12 18:23:55 +01:00
Zebratic 98094a5ff1 feat: default system prompt, auto-tools, sessions query fix, and model name mapping
- Add DEFAULT_SYSTEM_PROMPT env var for global system prompt injection
- Enable tools by default for auto web search capability
- Rewrite sessions route to query chat_conversations instead of debug_logs
- Return logical model name in Anthropic adapter responses
2026-03-12 15:23:49 +01:00
Zebratic c6b8a8a320 feat: add v1 health, messages, and status endpoints
- Add /v1/health endpoint for service health checks
- Add /v1/messages endpoint for Anthropic Messages API
- Add /v1/status endpoint for service status
- Add planning docs for Claude Code sessions feature
2026-03-12 05:20:46 +01:00
Zebratic 8fc78cc6c2 fix: update docs with correct Claude Code CLI flags and dynamic base URL
- Replace non-existent OpenAI flags with correct Claude Code flags (-u, -k)
- Add dynamic base URL using window.location.origin
- Change default model from gpt-4.1-mini to claude-sonnet-4-20250514
- Update header from "OpenAI-compatible API docs" to "LLM Proxy API docs"
- Fix ESLint no-explicit-any errors in sessions detail page
2026-03-12 05:19:30 +01:00
Zebratic ba81237385 Merge branch 'main' into feature/claude-code-sessions 2026-03-12 05:00:26 +01:00
Zebratic d395779aad feat: add sessions UI pages with expandable tool calls 2026-03-12 05:00:00 +01:00
Zebratic 8ba97c2075 feat: add sessions list page 2026-03-12 04:52:35 +01:00
Zebratic c60fd12a60 chore: add missing files for build 2026-03-12 04:50:16 +01:00
Zebratic 3347378cf5 feat: add sessions API endpoints
Add GET endpoints for listing and retrieving session details from debug_logs collection.
2026-03-12 04:43:20 +01:00
Zebratic 34d3a7c473 feat: capture session ID and tool calls in debug logs
- Add ToolCall interface with id, name, input, output, status, startedAt, completedAt
- Add sessionId and toolCalls fields to DebugLogEntry interface
- Add extractSessionId function to parse x-anthropic-billing-header header
- Extract sessionId and tool_calls from response in anthropic-messages-handler
2026-03-12 04:37:19 +01:00
Zebratic 0dba4c6df7 chore: add .worktrees to gitignore 2026-03-12 04:31:55 +01:00
Zebratic d9580ba7b6 update 2026-03-06 17:09:40 +01:00
Zebratic 7813bd3125 voice send fix 2026-03-03 07:09:09 +01:00
Zebratic 62029d5c26 UI/UX Fixes + Model action indicators + web search using searxng 2026-03-03 07:01:31 +01:00
Zebratic 2c135a0ed7 UI/UX fixes 2026-03-03 06:54:13 +01:00
Zebratic d2355d9a55 Fixes 2026-03-03 06:43:32 +01:00
Zebratic f5dbad9aff Fixes 2026-03-03 06:37:47 +01:00
Zebratic e10105e03e Allow friends and proper voice calls on desktop 2026-03-03 06:20:27 +01:00
Zebratic 03929db209 Fixed issues with pause detection and sub agents 2026-03-03 06:04:41 +01:00
Zebratic 69807331b3 Voice Call fixes 2026-03-03 05:22:14 +01:00
Zebratic a7ca97f22f Fixed voice calls 2026-03-03 05:04:56 +01:00
Zebratic 3757a2cead Alternative UI + Voice Calls 2026-03-03 04:14:57 +01:00
Zebratic 3b17ae8b9b weight system 2026-03-01 18:28:52 +01:00