Skip to content

Commit 86eace7

Browse files
author
潘婉宁
committed
fix: default strict false
1 parent 38f77f4 commit 86eace7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

volcenginesdkarkruntime/common/_parsing/_completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,6 @@ def type_to_response_format_param(
274274
"json_schema": {
275275
"schema": to_strict_json_schema(json_schema_type),
276276
"name": name,
277-
"strict": True,
277+
"strict": False,
278278
},
279279
}

volcenginesdkarkruntime/common/_parsing/_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def type_to_text_format_param(type_: type) -> ResponseFormatTextConfigParam:
4444

4545
return {
4646
"type": "json_schema",
47-
"strict": True,
47+
"strict": False,
4848
"name": response_format_dict["json_schema"]["name"],
4949
"schema": response_format_dict["json_schema"]["schema"],
5050
}

0 commit comments

Comments
 (0)