| 113 | |
| 114 | |
| 115 | def test_chat(url, stream): |
| 116 | logger.info(f"\n=== Testing Chat (Stream={stream}) ===\n") |
| 117 | messages = [{"role": "user", "content": "What is the capital of France?"}] |
| 118 | result = run_query(url, messages, stream=stream) |
| 119 | |
| 120 | if result: |
| 121 | if result["content"]: |
| 122 | logger.info("PASS: Output received.\n") |
| 123 | else: |
| 124 | logger.info("WARN: No content received (valid if strict tool call, but unexpected here).\n") |
| 125 | |
| 126 | if result.get("reasoning_content"): |
| 127 | logger.info(f"INFO: Reasoning content detected ({len(result['reasoning_content'])} chars).\n") |
| 128 | else: |
| 129 | logger.info("INFO: No reasoning content detected (Standard model behavior).\n") |
| 130 | else: |
| 131 | logger.info("FAIL: No result.\n") |
| 132 | |
| 133 | |
| 134 | def test_tool_call(url, stream): |