@@ -14,7 +14,11 @@ def __init__(
14
14
) -> None :
15
15
self ._client = client
16
16
17
- self ._sources = [types .LemurSourceRequest .from_lemur_source (s ) for s in sources ]
17
+ self ._sources = (
18
+ [types .LemurSourceRequest .from_lemur_source (s ) for s in sources ]
19
+ if sources is not None
20
+ else []
21
+ )
18
22
19
23
def question (
20
24
self ,
@@ -24,6 +28,7 @@ def question(
24
28
final_model : Optional [types .LemurModel ],
25
29
max_output_size : Optional [int ],
26
30
temperature : Optional [float ],
31
+ input_text : Optional [str ],
27
32
) -> types .LemurQuestionResponse :
28
33
response = api .lemur_question (
29
34
client = self ._client .http_client ,
@@ -34,6 +39,7 @@ def question(
34
39
final_model = final_model ,
35
40
max_output_size = max_output_size ,
36
41
temperature = temperature ,
42
+ input_text = input_text ,
37
43
),
38
44
http_timeout = timeout ,
39
45
)
@@ -48,6 +54,7 @@ def summarize(
48
54
max_output_size : Optional [int ],
49
55
timeout : Optional [float ],
50
56
temperature : Optional [float ],
57
+ input_text : Optional [str ],
51
58
) -> types .LemurSummaryResponse :
52
59
response = api .lemur_summarize (
53
60
client = self ._client .http_client ,
@@ -58,6 +65,7 @@ def summarize(
58
65
final_model = final_model ,
59
66
max_output_size = max_output_size ,
60
67
temperature = temperature ,
68
+ input_text = input_text ,
61
69
),
62
70
http_timeout = timeout ,
63
71
)
@@ -72,6 +80,7 @@ def action_items(
72
80
max_output_size : Optional [int ],
73
81
timeout : Optional [float ],
74
82
temperature : Optional [float ],
83
+ input_text : Optional [str ],
75
84
) -> types .LemurActionItemsResponse :
76
85
response = api .lemur_action_items (
77
86
client = self ._client .http_client ,
@@ -82,6 +91,7 @@ def action_items(
82
91
final_model = final_model ,
83
92
max_output_size = max_output_size ,
84
93
temperature = temperature ,
94
+ input_text = input_text ,
85
95
),
86
96
http_timeout = timeout ,
87
97
)
@@ -95,6 +105,7 @@ def task(
95
105
max_output_size : Optional [int ],
96
106
timeout : Optional [float ],
97
107
temperature : Optional [float ],
108
+ input_text : Optional [str ],
98
109
):
99
110
response = api .lemur_task (
100
111
client = self ._client .http_client ,
@@ -104,6 +115,7 @@ def task(
104
115
final_model = final_model ,
105
116
max_output_size = max_output_size ,
106
117
temperature = temperature ,
118
+ input_text = input_text ,
107
119
),
108
120
http_timeout = timeout ,
109
121
)
@@ -121,7 +133,7 @@ class Lemur:
121
133
122
134
def __init__ (
123
135
self ,
124
- sources : List [types .LemurSource ],
136
+ sources : Optional [ List [types .LemurSource ]] = None ,
125
137
client : Optional [_client .Client ] = None ,
126
138
) -> None :
127
139
"""
@@ -147,6 +159,7 @@ def question(
147
159
max_output_size : Optional [int ] = None ,
148
160
timeout : Optional [float ] = None ,
149
161
temperature : Optional [float ] = None ,
162
+ input_text : Optional [str ] = None ,
150
163
) -> types .LemurQuestionResponse :
151
164
"""
152
165
Question & Answer allows you to ask free form questions about one or many transcripts.
@@ -178,6 +191,7 @@ def question(
178
191
max_output_size = max_output_size ,
179
192
timeout = timeout ,
180
193
temperature = temperature ,
194
+ input_text = input_text ,
181
195
)
182
196
183
197
def summarize (
@@ -188,6 +202,7 @@ def summarize(
188
202
max_output_size : Optional [int ] = None ,
189
203
timeout : Optional [float ] = None ,
190
204
temperature : Optional [float ] = None ,
205
+ input_text : Optional [str ] = None ,
191
206
) -> types .LemurSummaryResponse :
192
207
"""
193
208
Summary allows you to distill a piece of audio into a few impactful sentences.
@@ -214,6 +229,7 @@ def summarize(
214
229
max_output_size = max_output_size ,
215
230
timeout = timeout ,
216
231
temperature = temperature ,
232
+ input_text = input_text ,
217
233
)
218
234
219
235
def action_items (
@@ -224,6 +240,7 @@ def action_items(
224
240
max_output_size : Optional [int ] = None ,
225
241
timeout : Optional [float ] = None ,
226
242
temperature : Optional [float ] = None ,
243
+ input_text : Optional [str ] = None ,
227
244
) -> types .LemurActionItemsResponse :
228
245
"""
229
246
Action Items allows you to generate action items from one or many transcripts.
@@ -251,6 +268,7 @@ def action_items(
251
268
max_output_size = max_output_size ,
252
269
timeout = timeout ,
253
270
temperature = temperature ,
271
+ input_text = input_text ,
254
272
)
255
273
256
274
def task (
@@ -260,6 +278,7 @@ def task(
260
278
max_output_size : Optional [int ] = None ,
261
279
timeout : Optional [float ] = None ,
262
280
temperature : Optional [float ] = None ,
281
+ input_text : Optional [str ] = None ,
263
282
) -> types .LemurTaskResponse :
264
283
"""
265
284
Task feature allows you to submit a custom prompt to the model.
@@ -282,6 +301,7 @@ def task(
282
301
max_output_size = max_output_size ,
283
302
timeout = timeout ,
284
303
temperature = temperature ,
304
+ input_text = input_text ,
285
305
)
286
306
287
307
@classmethod
0 commit comments