测试用例和结果

This commit is contained in:
zhaoawd
2025-10-29 23:43:06 +08:00
parent 59c9efa5d8
commit a78c8b9446
4 changed files with 137 additions and 1 deletions

View File

@ -7,7 +7,9 @@ from pathlib import Path
import httpx
import pandas as pd
from dotenv import load_dotenv
load_dotenv()
API_URL = "http://localhost:8000/v1/import/analyze"
CALLBACK_URL = "http://localhost:8000/__mock__/import-callback"
@ -26,9 +28,15 @@ async def main() -> None:
payload = {
"import_record_id": "demo-import-001",
"rows": rows,
"struce": headers,
"headers": headers,
"table_schema": {
"source": "excel",
"file_name": EXCEL_PATH.name,
"sheet_name": sheet_name,
},
"llm_model": "deepseek:deepseek-chat",
"temperature": 0.2,
"max_output_tokens": 256,
"callback_url": CALLBACK_URL,
}