Skip to content

Commit fd28146

Browse files
authored
Merge branch 'development' into dependabot/github_actions/epam/ai-dial-ci-1.9.2
2 parents 920dcc6 + 37301a2 commit fd28146

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

aidial_sdk/chat_completion/chunks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ class Attachment(BaseModel):
306306
def check_data_or_url(cls, values):
307307
data, url = values.get("data"), values.get("url")
308308

309-
if not data and not url:
309+
if data is None and url is None:
310310
raise ValueError("Trying to add attachment without data and url")
311-
if data and url:
311+
if data is not None and url is not None:
312312
raise ValueError("Trying to add attachment with data and url")
313313

314314
return values

poetry.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aidial-sdk"
3-
version = "0.14.0rc"
3+
version = "0.15.0rc"
44
description = "Framework to create applications and model adapters for AI DIAL"
55
authors = ["EPAM RAIL <[email protected]>"]
66
homepage = "https://epam-rail.com"

0 commit comments

Comments
 (0)