@@ -20,17 +20,24 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
20
20
self ._client_wrapper = client_wrapper
21
21
22
22
def summarize (
23
- self , * , markdown : str , images : typing .Dict [str , str ], request_options : typing .Optional [RequestOptions ] = None
23
+ self ,
24
+ * ,
25
+ markdown : str ,
26
+ images : typing .Dict [str , str ],
27
+ question : typing .Optional [str ] = OMIT ,
28
+ request_options : typing .Optional [RequestOptions ] = None ,
24
29
) -> SummarizerResponse :
25
30
"""
26
- Generate GDS factory code to create a PIC component
31
+ Summarize a PIC document
27
32
28
33
Parameters
29
34
----------
30
35
markdown : str
31
36
32
37
images : typing.Dict[str, str]
33
38
39
+ question : typing.Optional[str]
40
+
34
41
request_options : typing.Optional[RequestOptions]
35
42
Request-specific configuration.
36
43
@@ -57,6 +64,7 @@ def summarize(
57
64
json = {
58
65
"markdown" : markdown ,
59
66
"images" : images ,
67
+ "question" : question ,
60
68
},
61
69
headers = {
62
70
"content-type" : "application/json" ,
@@ -94,17 +102,24 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
94
102
self ._client_wrapper = client_wrapper
95
103
96
104
async def summarize (
97
- self , * , markdown : str , images : typing .Dict [str , str ], request_options : typing .Optional [RequestOptions ] = None
105
+ self ,
106
+ * ,
107
+ markdown : str ,
108
+ images : typing .Dict [str , str ],
109
+ question : typing .Optional [str ] = OMIT ,
110
+ request_options : typing .Optional [RequestOptions ] = None ,
98
111
) -> SummarizerResponse :
99
112
"""
100
- Generate GDS factory code to create a PIC component
113
+ Summarize a PIC document
101
114
102
115
Parameters
103
116
----------
104
117
markdown : str
105
118
106
119
images : typing.Dict[str, str]
107
120
121
+ question : typing.Optional[str]
122
+
108
123
request_options : typing.Optional[RequestOptions]
109
124
Request-specific configuration.
110
125
@@ -139,6 +154,7 @@ async def main() -> None:
139
154
json = {
140
155
"markdown" : markdown ,
141
156
"images" : images ,
157
+ "question" : question ,
142
158
},
143
159
headers = {
144
160
"content-type" : "application/json" ,
0 commit comments