Skip to content

Releases: SAP/ai-sdk-js

v1.12.0

17 Apr 14:18
ff111fc
Compare
Choose a tag to compare

Compatibility Notes

  • [langchain] Use LangchainOrchestrationModuleConfig to type the configuration object passed to the LangChain orchestration client. (5360c8c)

New Features

  • [orchestration] Add support for passing a YAML specification as a string to the templating property in OrchestrationModuleConfig. (5360c8c)

v1.11.0

08 Apr 14:21
Compare
Choose a tag to compare

Compatibility Notes

  • [core] Removed deprecated models:
    • text-embedding-ada-002, use text-embedding-3-small or text-embedding-3-large instead.
    • meta--llama3-70b-instruct, use meta--llama3.1-70b-instruct instead.
    • gpt-35-turbo, use gpt-4o-mini instead.
    • gpt-35-turbo-16k, use gpt-4o-mini instead.
    • gpt-4-32k, use gpt-4o instead. (627a152)

New Functionality

  • [langchain] Support using data masking in LangChain orchestration client. (3f8bd81)
  • [langchain] Support using content filtering in LangChain orchestration client. (e1f2b5a)
  • [orchestration] Introduce buildDpiMaskingProvider() convenience function to build masking provider SAP Data Privacy Integration. (a8d05b0)
  • [orchestration] Support setting metadata_params property in buildDocumentGroundingConfig() convenience function. (264c5b0)

v1.10.0

19 Mar 10:34
Compare
Choose a tag to compare

New Features

  • [prompt-registry] Add a new package @sap-ai-sdk/prompt-registry for consuming APIs from prompt registry service. (01ffe58)

Improvements

  • [core] Add o1, o3-mini and alephalpha-pharia-1-7b-control to the available model list. (6f28f47)

v1.9.0

06 Mar 11:39
Compare
Choose a tag to compare

Compatibility Notes

  • [core] Due to the introduction of ErrorWithCause, AxiosError is now wrapped inside the cause property.
    For example, use error.cause.response.data instead of error.response.data to access the error response from the server. (bfed500)

New Features

  • [langchain] Add LangChain Orchestration client. (a45dc06)
  • [orchestration] Introduce buildLlamaGuardFilter() convenience function to build Llama guard filters. (bc51f59)

Fixed Issues

  • [ai-api, core] Add missing cause in the error object for failing HTTP requests by using ErrorWithCause, providing more context for debugging.

Improvements

  • [orchestration] Update Orchestration to 2502b Release (84175fb)

v1.8.0

14 Feb 09:41
Compare
Choose a tag to compare

Compatibility Notes

  • [ai-api] Update AI API spec to 2501b release.
    The kubesubmitV4GenericSecretsGet function is renamed to kubesubmitV4GenericSecretsGetAll. (1731104)
  • [orchestration] Deprecate buildAzureContentFilter() function.
    Use buildAzureContentSafetyFilter() function instead. (54a9044)
  • [orchestration] Update Orchestration to 2502a Release (2c76a1f)

New Functionalities

  • [orchestration] Support configuring data masking for grounding inputs. (16d97ab)
  • [orchestration] Support using prompt registry with orchestration client. (5c248a1)

Fixed Issues

  • [ai-api, foundation-models, orchestration] Consider destination when resolving deployment ids. (09b0d2d)
  • [langchain] Add tool_calls array to assistant messages only when it is not empty. (cd06f2a)

v1.7.0

30 Jan 16:07
Compare
Choose a tag to compare

Compatibility Notes

  • [orchestration] Update Orchestration API to the 2501a release.
    As part of this change, the modelsGet method of ScenarioAPI has been renamed to scenarioQueryModels. (0a62553)

New Functionalities

  • [orchestration] Support using help.sap.com as data repository type in the grounding module. (f08ac2e)
  • [orchestration] Add streaming option in the OrchestrationModuleConfig type to set global streaming options. (bdaae7e)

Fixed Issues

  • [langchain] Fix the internal mapping of LangChain to Azure OpenAI and vice versa. (ccfa2eb)
  • [orchestration] Fix logging bug when using streaming with an Orchestration JSON client. (bdaae7e)

v1.6.0

14 Jan 15:43
Compare
Choose a tag to compare

New Functionality

  • [orchestration] Support image recognition for orchestration service. (1da2caa)
  • [orchestration] Add support for streaming in the orchestration client. (d836abf)

Improvements

  • [orchestration] Make model_params property in the LlmModuleConfig optional and refine the type definition to also include known properties. (1476584)
  • [orchestration] Add buildDocumentGroundingConfig() convenience function to create document grounding configuration in the Orchestration client. (a039890)

v1.5.0

07 Jan 14:07
Compare
Choose a tag to compare

New Functionalities

  • [ai-api, core, foundation-models, langchain, orchestration] Add support for providing custom destination for AI Core besides using environment variable and service binding. (b4a5506)
  • [document-grounding] Add a new package @sap-ai-sdk/document-grounding for consuming vector, pipeline and retrieval APIs from document grounding service. This package is still in beta and is subject to breaking changes. Use it with caution. (4425bfd)
  • [orchestration] Add support for using a JSON configuration obtained from AI Launchpad to consume orchestration service. (17a1eea)

v1.4.0

10 Dec 15:35
Compare
Choose a tag to compare

New Functionality

  • [foundation-models] Add support for streaming chat completion in the Azure OpenAI client. (d79cee8)
  • [orchestration] Add support for grounding capabilities of the orchestration service. (d79cee8)

v1.3.0

15 Nov 11:04
Compare
Choose a tag to compare

Compatibility Notes

  • [orchestration] Switch some of the orchestration interfaces to types, as they were introduced by accident.
  • [orchestration] Remove grounding key from the type ModuleResults. (6fe32b8)
  • [orchestration] FilteringConfig type has been renamed to InputFilteringConfig and OutputFilteringConfig for future extensibility. (bf17e17)

Fixed Issues

  • [foundation-models, orchestration] Get choice via index by comparing the index property instead of using array index.
  • [orchestration] Fix input and output filters to disallow additional properties as part of the filter config.