chore: update something
Browse files- docsifer/router.py +0 -2
docsifer/router.py
CHANGED
@@ -67,7 +67,6 @@ async def convert_document(
|
|
67 |
raise ValueError("Invalid JSON in 'settings' parameter.")
|
68 |
|
69 |
cleanup = settings_config.get("cleanup", True)
|
70 |
-
print("> convert_document, file", [file, file is not None])
|
71 |
|
72 |
# If a file is provided, use it; otherwise, fetch the content from the URL.
|
73 |
if file is not None:
|
@@ -75,7 +74,6 @@ async def convert_document(
|
|
75 |
temp_path = Path(tmpdir) / file.filename
|
76 |
contents = await file.read()
|
77 |
temp_path.write_bytes(contents)
|
78 |
-
print("> convert_document, temp_path", [temp_path, temp_path.exists()])
|
79 |
result, token_count = await docsifer_service.convert_file(
|
80 |
source=str(temp_path),
|
81 |
openai_config=openai_config,
|
|
|
67 |
raise ValueError("Invalid JSON in 'settings' parameter.")
|
68 |
|
69 |
cleanup = settings_config.get("cleanup", True)
|
|
|
70 |
|
71 |
# If a file is provided, use it; otherwise, fetch the content from the URL.
|
72 |
if file is not None:
|
|
|
74 |
temp_path = Path(tmpdir) / file.filename
|
75 |
contents = await file.read()
|
76 |
temp_path.write_bytes(contents)
|
|
|
77 |
result, token_count = await docsifer_service.convert_file(
|
78 |
source=str(temp_path),
|
79 |
openai_config=openai_config,
|