trace/services/class-monitor/tests/qwen_channel_smoke.py

21 lines
481 B
Python

import asyncio
from class_monitor.llm import Analyzer
async def main() -> None:
analyzer = Analyzer({"llm": {"model": "qwen3.8-flash", "timeout_seconds": 20}})
try:
await analyzer.call(
"只输出 JSON。",
'输出 {"status":"ok"}',
)
except Exception as exc:
print(f"QWEN_CHANNEL_SMOKE=FAIL {exc}")
raise SystemExit(2)
print("QWEN_CHANNEL_SMOKE=PASS")
if __name__ == "__main__":
asyncio.run(main())