mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-17 19:47:09 +00:00
* feat: add Anthropic Messages API compatibility layer Add a new endpoint at /puterai/anthropic/v1/messages that implements the Anthropic Messages API wire format, allowing clients using the Anthropic SDK to point directly at Puter. - New router translates between Anthropic format and Puter's internal svcAiChat.complete() pipeline - Supports non-streaming, SSE streaming (proper Anthropic event sequence), and tool use round-trips - Translates system field, tool definitions (input_schema -> parameters), and tool_result content blocks - Integration tests covering non-streaming, streaming, tool use, Anthropic SDK compatibility, and system parameter Closes #2554 * Fix authentication middleware --------- Co-authored-by: ProgrammerIn-wonderland <30693865+ProgrammerIn-wonderland@users.noreply.github.com>