Skip to content

Latest commit

 

History

History
206 lines (119 loc) · 4.72 KB

File metadata and controls

206 lines (119 loc) · 4.72 KB

Changelog

1.0.0

Breaking Changes

  • Vercel AI SDK v5 support - This version requires @ai-sdk/provider v2.0.0 and @ai-sdk/provider-utils v3.0.1
  • Previous versions of Vercel AI SDK (v4) are no longer supported
  • Updated ai dev dependency to v5.0.0

Changes

  • Refactored langtail-language-model.ts for AI SDK v5 compatibility
  • Updated convert-to-openai-chat-messages.ts for new message format
  • Updated map-langtail-finish-reason.ts for v5 finish reasons
  • Updated openai-prepare-tools.ts for v5 tool format
  • Removed deprecated map-openai-chat-logprobs.ts
  • Added comprehensive test coverage for language model and message conversion

0.16.8

  • Add GoogleGeminiV1 to ReasoningFormat and update related tests

0.16.7

  • Improved shape of reasoning_details values - not using native enum

0.16.6

  • Add support for reasoning_details (openrouter specific) returned in providerMetadata in the vercel ai sdk provider

0.16.5

  • Add support for tool results as message type arrays with images in Vercel AI SDK integration
  • Tool results can now return rich content arrays containing text and images instead of just strings
  • Maintains backward compatibility with existing string-based tool results
  • Updated ChatCompletionToolMessageParam to support both string and array content types

0.16.1

  • Add support for message.reasoning in schema

0.16.0

  • Add simpleHash function to generate unique IDs for tool calls in LangtailChatLanguageModel to prevent collisions, particularly with Google Gemini 2.5
  • Update tool call ID logic to incorporate hashed arguments

0.15.3

  • support null in reasoning (returned by openrouter sometimes)

0.15.2

  • Fixed streaming support for Claude 3.7 Sonnet reasoning format
  • Enhanced Zod schema for reasoning field to handle a wider variety of response formats
  • Improved type handling for reasoning in Vercel AI SDK integration

0.15.1

  • Added cache_enabled support to message schema
  • Added Anthropic cache control support to Vercel AI SDK integration
  • Updated dependencies: '@ai-sdk/provider' to 1.1.1 and '@ai-sdk/provider-utils' to 2.2.5
  • Added 'ai' package as dev dependency
  • Added playground examples for Vercel integration with cache control

0.15.0

  • Fixed reasoning for Claude thinking

0.14.2

  • Added changes from 0.13.11 and 0.13.10
  • Reasoning data support

0.14.1

  • Fix finishReason for Anthropic and Google providers in Vercel AI SDK integration

0.14.0

  • Update openai version
  • Fix tool calls issues for Vercel AI SDK integration
  • Remove useChatStream (moved to separate repo)

0.13.11

  • Add max_thinking_tokens support (Anthropic enhanced thinking)

0.13.10

  • Add reasoning_effort support

0.13.9

  • Fix for browser runtime

0.13.8

  • New Handlebars helpers: last, toJSON, formatMessage (more variants)

0.13.7

  • Fix react peerDependency version syntax #73

0.13.6

  • Keep the tool_calls in final message callback #72

0.13.5

  • Option to append template to the end in getOpenAIBody.
  • Fix IntelliSense for tools when using Vercel AI SDK.

0.13.4

  • add parallelToolCalls option to pass it to the API

0.13.3

  • Support for Langtail hosted tools

0.5.4

  • Fix: don't send stop parameter if it's empty (this causes validation error in OpenAI in some cases)
  • Add schemas to entrypoints

0.5.3

  • Fix CommonJS support
  • Add prompt parameter to OpenAI proxy

0.5.2

  • Fix generating quoted variable values with
  • BREAKING CHANGE: rename vercelAi -> vercel-ai
  • BREAKING CHANGE: rename LangtailNode class to Langtail
  • add langtail/openai with OpenAIProxy class
  • BREAKING CHANGE: remove Langtail.chat, use OpenAIProxy instead

0.5.1

  • BREAKING CHANGE: remove langtail.build method, use getOpenAIBody instead

0.5.0

  • BREAKING CHANGE: remove dist/ from import paths

0.4.6

  • IntelliSense for variables

0.4.4

  • useChatStream react hook
  • export stream helpers chatStreamToRunner and assistantStreamToRunner

0.4.3

  • Langtail types generator

0.4.2

  • list deployments EP
  • Langtail tools generator for Vercel AI SDK

0.4.1

  • remove zod openapi dependency
  • internal changes #24

0.4.0

0.3.1

  • fix next.js compatibility

0.3.0

  • add ability to get and build to run langtail prompts without using a proxy

0.2.2

  • invoke environment parameter now defaults to production
  • start sending user-agent header #10

0.2.1

  • Small README update - move short description above CI badges

0.2.0

  • Rename to just langtail NPM package

0.1.5

  • Fixed an issue when passing doNotRecord: false as option, support for metadata fields

0.1.4

  • Allow Node 18 (engines.node set to >= 18)

0.1.3

  • First publicly used version 🎉🎉🎉