Skip to content

Commit 5856c50

Browse files
authored
Merge pull request #57 from openai/lukas/fix-default-checked-type
[bug] Fix type for Checkbox defaultChecked
2 parents 8bdadc4 + 888bb98 commit 5856c50

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

chatkit/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ class Checkbox(WidgetComponentBase):
709709
"""The name of the form control field used when submitting forms."""
710710
label: str | None = None
711711
"""Optional label text rendered next to the checkbox."""
712-
defaultChecked: str | None = None
712+
defaultChecked: bool | None = None
713713
"""The initial checked state of the checkbox."""
714714
onChangeAction: ActionConfig | None = None
715715
"""Action dispatched when the checked state changes."""

docs/release.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ We will increment patch versions for non-breaking changes:
1818

1919
## Breaking change changelog
2020

21+
### 1.3.0
22+
23+
- Fixed the type for the `defaultChecked` property of `Checkbox` widgets, updating it from `string` to `bool`.
24+
25+
### 1.2.0
26+
27+
- Updated `agents.stream_agent_response` to add annotation parts as they are received rather than adding all the annotations at the end after the response is completed.
28+
- Added support for rendering `container_file_citation`.
29+
2130
### 1.1.0
2231

2332
- `CustomSummary`, `CustomTask`, and `EntitySource` types have been updated to restrict `icon` to `IconName`.

docs/widgets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Checkbox input component.
150150
| `type` | `Checkbox` | 'Checkbox' |
151151
| `name` | `str` | |
152152
| `label` | `str | None` | None |
153-
| `defaultChecked` | `str | None` | None |
153+
| `defaultChecked` | `bool | None` | None |
154154
| `onChangeAction` | `ActionConfig | None` | None |
155155
| `disabled` | `bool | None` | None |
156156
| `required` | `bool | None` | None |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openai-chatkit"
3-
version = "1.2.0"
3+
version = "1.3.0"
44
description = "A ChatKit backend SDK."
55
readme = "README.md"
66
requires-python = ">=3.10"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)