Skip to content

Releases: epam/ai-dial-sdk

0.21.0

10 Apr 15:33

Choose a tag to compare

Features

  • add cache breakpoints for chat completion tools and messages (#236)
  • support extra fields in request classes (via optional allow_extra_request_fields flag in DIALApp constructor) (#225)

Fixes

  • fix streaming of function/tool call arguments (#239)

Other

  • bump epam/ai-dial-ci from 1.11.1 to 1.12.1 (#233)

0.20.0

20 Mar 10:09

Choose a tag to compare

Features

  • add API for requesting application properties (#223)
  • sync chat completion data types with api-version 2024-10-21 (#224, #226)
  • add chat completion message with developer role (#227)
  • support Python 3.13 (#230, #231)

Other

  • bump pillow from 10.2.0 to 10.3.0 (#232)

Breaking changes

  • removed custom_fields.application_properties field from the chat completion request (#223); use new API to retrieve application properties instead:
    • await request.request_dial_application_properties() to fetch application properties from the DIAL listing
    • request.unreliable_dial_application_properties to get application properties supplied by Core in the request headers (keep in mind that excessively large headers may be removed in transit, thus, unreliable qualification)

0.19.0

26 Feb 16:01

Choose a tag to compare

Features

  • introduce API for buttons (#218)
  • allow optional FastAPI app in init_telemetry (#219)

Other

  • add issue and pull request templates for better contributions

0.18.0

06 Feb 14:16

Choose a tag to compare

Features

  • add json_schema option in response_format in chat completion request (#217)
  • add required option in tool_choice in chat completion request (#216)

Other

  • bump epam/ai-dial-ci from 1.10.2 to 1.11.0 (#212)
  • bump epam/ai-dial-ci from 1.11.0 to 1.11.1 (#214)
  • bump multidict from 6.0.4 to 6.0.5 (#215)
  • bump virtualenv from 20.24.5 to 20.26.6 (#211)

0.17.0

10 Jan 10:25

Choose a tag to compare

Features

  • support form schemas and form values in /chat/completions API (#204)
  • support /configuration endpoint (#204)
  • support application properties for type schemas (#206)

Fixes

  • define str of HTTPException via its message (#210)

Other

  • replace AsyncGenerator with AsyncIterator where possible (#200)
  • add missing dependencies in SDK examples (#202)
  • pin poetry to 1.8.5 (#209)
  • optimize trivy (#198)
  • bump epam/ai-dial-ci from 1.10.0 to 1.10.2 (#205)
  • bump protobuf from 5.29.0 to 5.29.1 (#201)

0.16.0

28 Nov 16:39

Choose a tag to compare

Features

  • add headers field to the HTTP exception class (#192)
  • relaxed version constraints for telemetry packages; removed HTTP client packages from dependencies (#195)

Fixes

  • handle client disconnect gracefully by propagating cancellation exception up to the chat completion handler (#185)
  • support conditional imports of http client libraries (#194)

Other

  • added reference to PyPI (#193)
  • bump aiohttp from 3.10.2 to 3.10.11 (#188, #190)
  • bump epam/ai-dial-ci from 1.9.4 to 1.10.0 (#189)
  • bump opentelemetry packages from 1.20.0/0.41b0 to 1.22.0/0.43b0 to avoid bug in opentelemetry-exporter-prometheus (#197)
  • refactored and simplified unit tests (#191)

0.15.0

18 Nov 10:15

Choose a tag to compare

Features

  • add heartbeat feature to chat completion endpoint (#175)
  • add static functions in SDK request as a new type of tool with type=static_function(#184)

Fixes

  • relaxed validation of the Attachment class (#171)
  • fixed sharing issues in the algorithm for merging chunks (#183)

Other

  • bump starlette from 0.36.3 to 0.40.0; fastapi from 0.109.2 to 0.115.2 (#170)
  • bump epam/ai-dial-ci from 1.9.1 to 1.9.2 (#168)
  • bump epam/ai-dial-ci from 1.9.2 to 1.9.4 (#177)
  • bumped dependency versions in langchain_rag example (#180)
  • bump langchain from 0.3.0 to 0.3.7 in /examples/langchain_rag (#181)
  • refactor streaming logic (#173)

0.14.0

10 Oct 12:48

Choose a tag to compare

Features

  • introduced content parts to the type of the request user message content (#164)

Other

  • bump langchain from 0.2.9 to 0.2.10 in /examples/langchain_rag (#162)

0.13.0

03 Sep 15:30

Choose a tag to compare

Deprecations

  • helper methods for various errors were deprecated, and their roles are now performed by the corresponding exception classes. For example, the call to the request_validation_error("error message") function can be replaced with the raise RequestValidationError("error message") exception class. The methods will be available until the next major release (#160).

Features

  • introduced exception classes for various errors (#160)

0.12.0

02 Sep 21:37

Choose a tag to compare

Features

  • added original_request to the Request class (#158)