Skip to content

Commit bc5e69e

Browse files
committed
fix: FunctionBlock function attribute should have default None
Pin openai=1.61.0 BerriAI/litellm#9424 Signed-off-by: Nick Mitchell <[email protected]>
1 parent 0ef7810 commit bc5e69e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies = [
1313
"PyYAML~=6.0",
1414
"jsonschema~=4.0",
1515
"litellm>=1.57.3,!=1.59.9,!=1.63.14",
16+
"openai==1.61.0",
1617
"termcolor~=2.0",
1718
"ipython>=8,<10",
1819
"json-repair~=0.35",

src/pdl/pdl_ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class FunctionBlock(LeafBlock):
273273
"""Function declaration."""
274274

275275
kind: Literal[BlockKind.FUNCTION] = BlockKind.FUNCTION
276-
function: Optional[dict[str, Any]]
276+
function: Optional[dict[str, Any]] = None
277277
"""Functions parameters with their types.
278278
"""
279279
returns: "BlockType" = Field(..., alias="return")

0 commit comments

Comments
 (0)