data目录中存放了本次训练用的训练数据:
E:\2024\人工智能\fine-tuning-lab\fine-tuning-lab-4\data\convert_format.py
import json
tools = [{
"name": "search_hotels",
"description": "根据用户的需求生成查询条件来查酒店",
"parameters": {
"type": "object",
"properties": {
"name": { "type": "string", "description": "酒店名称" },
"type": { "type": "string", "enum": ["豪华型", "经济型", "舒适型", "高档型"], "description": "酒店类型" },
"facilities": { "type": "array", "items": { "type": "string" }, "description": "酒店能提供的设施列表" },
"price_range_lower": { "type": "number", "minimum": 0, "description": "价格下限" },
"p