(paper_path: str)
| 242 | return call_unified_llm(contents, api_key=api_key) |
| 243 | |
| 244 | def read_paper_content(paper_path: str) -> str: |
| 245 | try: |
| 246 | with open(paper_path, 'r', encoding='utf-8') as f: |
| 247 | content = f.read() |
| 248 | print(f"Successfully read paper content: {len(content)} characters") |
| 249 | return content |
| 250 | except Exception as e: |
| 251 | print(f"Failed to read paper file: {e}") |
| 252 | return "" |
| 253 | |
| 254 | def load_reference_figures(figure_paths: List[str]) -> List[Image.Image]: |
| 255 | reference_figures = [] |
no outgoing calls
no test coverage detected