测试用例和结果
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user