()
| 164 | |
| 165 | |
| 166 | async def test_pdf(): |
| 167 | logger.info(f"| --------------------------------------------------") |
| 168 | logger.info(f"| Testing PDF with different models") |
| 169 | models = [ |
| 170 | "openrouter/gemini-3-flash-preview-plugins" |
| 171 | ] |
| 172 | |
| 173 | messages = [ |
| 174 | SystemMessage(content="You are a helpful assistant."), |
| 175 | HumanMessage(content=[ |
| 176 | ContentPartText(text="Please analyze the PDF and provide the analysis. Only return the analysis, no other text or formatting."), |
| 177 | ContentPartPdf(pdf_url=PdfURL(url=make_file_url(file_path="tests/files/pdf.pdf"))), |
| 178 | ]), |
| 179 | ] |
| 180 | |
| 181 | for model in models: |
| 182 | logger.info(f"| Testing {model}") |
| 183 | response = await model_manager(model=model, messages=messages) |
| 184 | logger.info(f"| {model} Response: {json.dumps(response.model_dump(), indent=4)}") |
| 185 | logger.info(f"| --------------------------------------------------") |
| 186 | |
| 187 | |
| 188 | async def test_response_format(): |
nothing calls this directly
no test coverage detected