Skip to content

Commit f681656

Browse files
changed encoder to encoding and added encoding to whisper_status
1 parent c6e1b50 commit f681656

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/unstract/llmwhisperer/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def whisper(
191191
ocr_provider (str, optional): The OCR provider. Can be "advanced" or "basic". Defaults to "advanced".
192192
line_splitter_tolerance (float, optional): The line splitter tolerance. Defaults to 0.4.
193193
horizontal_stretch_factor (float, optional): The horizontal stretch factor. Defaults to 1.0.
194-
encoder (str): The character encoding to use for processing the text. Defaults to "ISO-8859-1".
194+
encoding (str): The character encoding to use for processing the text. Defaults to "utf-8".
195195
196196
Returns:
197197
dict: The response from the API as a dictionary.
@@ -296,6 +296,7 @@ def whisper_status(self, whisper_hash: str, encoding: str = "utf-8") -> dict:
296296
297297
Args:
298298
whisper_hash (str): The hash of the whisper (returned by whisper method)
299+
encoding (str): The character encoding to use for processing the text. Defaults to "utf-8".
299300
300301
Returns:
301302
dict: A dictionary containing the status of the whisper operation. The keys in the

0 commit comments

Comments
 (0)