Processes PDF files: extracts text and stores it in the database. DEPRECATED: This is the old method. Use handle_file_upload instead.
(self, session_id: str)
| 731 | self.send_json_response({"error": f"An unexpected error occurred: {str(e)}"}, status_code=500) |
| 732 | |
| 733 | def handle_pdf_upload(self, session_id: str): |
| 734 | """ |
| 735 | Processes PDF files: extracts text and stores it in the database. |
| 736 | DEPRECATED: This is the old method. Use handle_file_upload instead. |
| 737 | """ |
| 738 | # This function is now deprecated in favor of the new indexing workflow |
| 739 | # but is kept for potential legacy/compatibility reasons. |
| 740 | # For new functionality, it should not be used. |
| 741 | self.send_json_response({ |
| 742 | "warning": "This upload method is deprecated. Use the new file upload and indexing flow.", |
| 743 | "message": "No action taken." |
| 744 | }, status_code=410) # 410 Gone |
| 745 | |
| 746 | def handle_get_models(self): |
| 747 | """Get available models from both Ollama and HuggingFace, grouped by capability""" |
nothing calls this directly
no test coverage detected