Skip to content

v0.5.0

Choose a tag to compare

@slegarraga slegarraga released this 07 Jun 07:42
· 28 commits to main since this release

Added

  • Added OpenAI Responses API response normalization via
    responseFromOpenAIResponses(...) and explicit normalizeResponse(...)
    routing, mapping output_text to assistant content, function_call to Chat
    Completions-compatible tool_calls, and Responses usage/status fields to
    neutral usage and finishReason values.
  • Preserved Anthropic tool_result.is_error as optional canonical tool-message
    metadata across Anthropic round trips.
  • Preserved standalone Gemini functionResponse.name as optional canonical
    tool-message metadata so orphaned tool results can convert back to Gemini
    without using the result id as the function name.
  • Added dropped-metadata warnings for OpenAI message names and provider-only
    tool result metadata that the selected target provider cannot represent.

Fixed

  • Kept empty user turns intact when round-tripping through Anthropic or Gemini.
  • Preserved mixed Anthropic user text and tool_result block order when
    converting into canonical OpenAI-compatible messages and back.

Published to npm as llm-messages@0.5.0.