Skip to content

Commit 7c317d1

Browse files
Wang Zesongdayflyshao
authored andcommitted
fix: create with reasoning
1 parent 7475a42 commit 7c317d1

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

volcenginesdkarkruntime/types/responses/knowledge_search_tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from __future__ import annotations
1313

14-
from typing import Any, Optional
14+
from typing import Any, Dict, Optional
1515

1616
from typing_extensions import Literal
1717

@@ -36,10 +36,10 @@ class KnowledgeSearchTool(BaseModel):
3636
dense_weight: Optional[float] = None
3737
"""Knowledge search dense_weight"""
3838

39-
doc_filter: Optional[dict[str, Any]] = None
39+
doc_filter: Optional[Dict[str, Any]] = None
4040
"""Knowledge search filter"""
4141

42-
ranking_options: Optional[dict[str, Any]] = None
42+
ranking_options: Optional[Dict[str, Any]] = None
4343
"""Knowledge search ranking options"""
4444

4545
max_keyword: Optional[int] = None

volcenginesdkarkruntime/types/responses/response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# This modified file is released under the same license.
1111

12-
from typing import Optional, Union
12+
from typing import List, Optional, Union
1313

1414
from typing_extensions import Literal, TypeAlias
1515
from volcenginesdkarkruntime.types.shared.reasoning import Reasoning
@@ -63,7 +63,7 @@ class Response(BaseModel):
6363
object: Literal["response"]
6464
"""The object type of this resource - always set to `response`."""
6565

66-
output: list[ResponseOutputItem]
66+
output: List[ResponseOutputItem]
6767
"""An array of content items generated by the model."""
6868

6969
previous_response_id: Optional[str] = None
@@ -81,7 +81,7 @@ class Response(BaseModel):
8181
temperature: Optional[float] = None
8282
"""What sampling temperature to use, between 0 and 2."""
8383

84-
tools: list[Tool]
84+
tools: List[Tool]
8585
"""An array of tools the model may call while generating a response. You can specify which tool to use by setting the `tool_choice` parameter."""
8686

8787
top_p: Optional[float] = None

volcenginesdkarkruntime/types/responses/response_knowledge_search_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from __future__ import annotations
1313

14-
from typing import Optional
14+
from typing import List, Optional
1515

1616
from typing_extensions import Literal
1717

@@ -23,7 +23,7 @@
2323
class ResponseKnowledgeSearchItem(BaseModel):
2424
type: Literal["knowledge_search_call"]
2525

26-
queries: list[str]
26+
queries: List[str]
2727

2828
knowledge_resource_id: str
2929

volcenginesdkarkruntime/types/responses/response_output_text_annotation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# This modified file is released under the same license.
1111

12-
from typing import Any, Dict, Optional
12+
from typing import Any, Dict, List, Optional
1313

1414
from typing_extensions import Literal, Optional
1515

@@ -59,5 +59,5 @@ class ResponseOutputTextAnnotation(BaseModel):
5959
chunk_id: Optional[int] = None
6060
"""The chunk id of the doc_citation"""
6161

62-
chunk_attachment: list[Dict[str, Any]]
62+
chunk_attachment: List[Dict[str, Any]]
6363
"""The chunk_attachment of the doc_citation"""

0 commit comments

Comments
 (0)