找回密码
 立即注册
首页 业界区 业界 拆解 MCP 的运行原理

拆解 MCP 的运行原理

判涔 2025-6-2 22:38:39
注意:此实验非常消耗模型 Token
背景:最近 MCP 火的发烫,什么是 MCP 就不讨论了,比较好奇 MCP 具体的运行逻辑。
现象:同时使用 Cursor 和 MaxKB 对接腾讯地图的 MCP Server,发现返回的内容有较大差别。(和模型能力有较大关系)
Cursor 的返回结果,使用的是 Claude- 3.5:
1.png

MaxKB 的返回结果,此时使用的是阿里百炼的 qwen-turbo 模型:
2.png

实验目的:从大模型的角度拆解 MCP 的运行原理是什么,使用 CloudFlare 代理 AI 模型,看一下具体的调用链路,做过程记录。
具体原理:
3.png

注:MCP Client 在 Call 大模型的时候会提交大量包含工具使用等内容的提示词
实验步骤:

用到的工具:CloudFlare、OpenRouter、MaxKB、腾讯地图 MCP Server、Cursor
1、构建 Cloudflare AI Gateway

通过 CloudFlare 代理大模型,从而记录 API 调用
4.png

2、创建一个  OpenRouter 的 Platform

代理  OpenRouter
5.png

保管此 API Endpoint
3、注册 OpenRouter 并获取 Key

目的是免费使用合适的大模型
6.png

4、在 MaxKB 中添加 CloudFlare 代理的  AI 模型

用对接 OpenAI 的方式对接 通过 CloudFlare 代理的运行在 OpenRouter 上的 Claude。(这里有点绕,,,)
基础模型:在 OpenRouter 模型列表中的模型名称,此处选用 Cloude-3.5-sonnet
API URL:CloudFlare AI Gateway 的 API Endpoint
API Key:OpenRouter 上获取的 Key
7.png

5、注册腾讯地图服务并获取 Key

为什么选用腾讯地图的 MCP 服务?因为腾讯地图官方提供托管面部署的 MCP Server。
登录腾讯地图开发者平台,地址:https://lbs.qq.com/dev/console/home
8.png

创建应用并获取 Key
9.png

开启 API 配额,要不 API 无法调用
10.png

6、在MaxKB中添加腾讯地图 MCP Server

MCP Server 配置参考样例:
  1. {
  2.   "tengxunditu": {
  3.     "url": "https://mcp.map.qq.com/sse?key=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx",
  4.     "transport": "sse"
  5.   }
  6. }
复制代码
详情参考官方手册:https://lbs.qq.com/service/MCPServer/MCPServerGuide/userGuide
7、在 MaxKB 的工作流中使用使用 MCP 方式调用

11.png

注:此时使用的是 Claude-3.5-sonnet ,效果和在 Cursor 上使用比较接近
8、查看 CloudFlare AI Gateway 的记录

如图是一个 MCP 任务的 API 调用及消耗,单次 MCP 执行约消耗 10W Tokens
12.png

log 太多,这里放一部分。
  1. 请求:
  2. {
  3.   "messages": [
  4.     {
  5.       "content": "问题:\n帮我规划从深圳会展中心去深圳宝安机场的驾车路线,中途去深圳车公庙地铁站附近加个油",
  6.       "role": "user"
  7.     }
  8.   ],
  9.   "model": "anthropic/claude-3.5-sonnet",
  10.   "max_completion_tokens": 800,
  11.   "stream": true,
  12.   "temperature": 0.7,
  13.   "tools": [
  14.     {
  15.       "type": "function",
  16.       "function": {
  17.         "name": "geocoder",
  18.         "description": "提供由文字地址(包含省市区信息的完整地址)到经纬度的转换能力,并同时提供结构化的省市区地址信息",
  19.         "parameters": {
  20.           "type": "object",
  21.           "properties": {
  22.             "address": {
  23.               "description": "包含省市区信息的的格式化地址 或 包含城市名的地点关键词",
  24.               "type": "string"
  25.             }
  26.           },
  27.           "required": [
  28.             "address"
  29.           ]
  30.         }
  31.       }
  32.     },
  33.     {
  34.       "type": "function",
  35.       "function": {
  36.         "name": "placeSuggestion",
  37.         "description": "根据要搜索地点的关键词和搜索的城市(城市名),搜索符合条件的地点信息, 返回包括地点名称、地址、经纬度、分类等(如搜索北京的景点、酒店、购物场景,搜索某个地方的详细地址等)",
  38.         "parameters": {
  39.           "type": "object",
  40.           "properties": {
  41.             "keyword": {
  42.               "description": "关键词,地点名称",
  43.               "type": "string"
  44.             },
  45.             "region": {
  46.               "description": "搜索城市,如果不知道城市名,可不输入本参数",
  47.               "type": "string"
  48.             }
  49.           },
  50.           "required": [
  51.             "keyword"
  52.           ]
  53.         }
  54.       }
  55.     },
  56.     {
  57.       "type": "function",
  58.       "function": {
  59.         "name": "placeSearchNearby",
  60.         "description": "附近周边搜索,输入的搜索关键词,中心点经纬度(格式lat,lng)搜索其周边符合条件的地点信息 返回包括地点名称、地址、经纬度、分类等(如搜索北京的景点、酒店、购物场景,搜索某个地方的详细地址等)",
  61.         "parameters": {
  62.           "type": "object",
  63.           "properties": {
  64.             "keyword": {
  65.               "description": "关键词,地点名称",
  66.               "type": "string"
  67.             },
  68.             "location": {
  69.               "description": "搜索中心点经纬度(可以通过地址解析将文字地址转为经纬度),格式lat,lng",
  70.               "type": "string"
  71.             }
  72.           },
  73.           "required": [
  74.             "location",
  75.             "keyword"
  76.           ]
  77.         }
  78.       }
  79.     },
  80.     {
  81.       "type": "function",
  82.       "function": {
  83.         "name": "directionDriving",
  84.         "description": "根据起终点经纬度,规划驾车路线,支持参考路况、少收费、不走高速等偏好,同时支持返回路线预估用时,路线距离,过路费等信息",
  85.         "parameters": {
  86.           "type": "object",
  87.           "properties": {
  88.             "from": {
  89.               "description": "起点经纬度,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  90.               "type": "string"
  91.             },
  92.             "to": {
  93.               "description": "终点(目的地)经纬度,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  94.               "type": "string"
  95.             }
  96.           },
  97.           "required": [
  98.             "from",
  99.             "to"
  100.           ]
  101.         }
  102.       }
  103.     },
  104.     {
  105.       "type": "function",
  106.       "function": {
  107.         "name": "placeAlongby",
  108.         "description": "在路线的沿途进行搜索:输入路线的经纬度坐标串和搜索关键词,搜索该路线沿途符合该关键词的地点,路线的经纬度点串,可以通过驾车路线规划获取",
  109.         "parameters": {
  110.           "type": "object",
  111.           "properties": {
  112.             "keyword": {
  113.               "description": "搜索关键词,例如:充电站、厕所、停车场、购物、加油站、银行ATM、加气站、便利店、服务区、汽车维修、中石油、中石化",
  114.               "type": "string"
  115.             },
  116.             "polyline": {
  117.               "description": "经纬度点构成的折线,结构是lat1,lng1,lat2,lng2,lat3,lng4....",
  118.               "type": "string"
  119.             }
  120.           },
  121.           "required": [
  122.             "polyline",
  123.             "keyword"
  124.           ]
  125.         }
  126.       }
  127.     },
  128.     {
  129.       "type": "function",
  130.       "function": {
  131.         "name": "placeDetail",
  132.         "description": "POI详情信息,根据POI ID搜索相关信息,包括:名称、地址、经纬度、分类、省市区信息。如果查询结果为空,则返回POI ID不存在",
  133.         "parameters": {
  134.           "type": "object",
  135.           "properties": {
  136.             "id": {
  137.               "description": "poiid",
  138.               "type": "string"
  139.             }
  140.           },
  141.           "required": [
  142.             "id"
  143.           ]
  144.         }
  145.       }
  146.     },
  147.     {
  148.       "type": "function",
  149.       "function": {
  150.         "name": "matrix",
  151.         "description": "用于批量计算多个起终点到多个终点的路面距离(或称导航距离)",
  152.         "parameters": {
  153.           "type": "object",
  154.           "properties": {
  155.             "from": {
  156.               "description": "起点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  157.               "type": "string"
  158.             },
  159.             "mode": {
  160.               "description": "通行方式,驾车为driving, 步行为walking, 骑行为bicycling。 不支持其他通行方式",
  161.               "type": "string"
  162.             },
  163.             "to": {
  164.               "description": "终点(目的地)经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  165.               "type": "string"
  166.             }
  167.           },
  168.           "required": [
  169.             "from",
  170.             "to",
  171.             "mode"
  172.           ]
  173.         }
  174.       }
  175.     },
  176.     {
  177.       "type": "function",
  178.       "function": {
  179.         "name": "reverseGeocoder",
  180.         "description": "输入经纬度坐标,返回其所在位置的语义化地址、省、市、区、乡镇、门牌号、行政区划代码、商圈、地标、道路及交叉口、河流、湖泊、桥等",
  181.         "parameters": {
  182.           "type": "object",
  183.           "properties": {
  184.             "location": {
  185.               "description": "经纬度坐标,结构是lat,lng",
  186.               "type": "string"
  187.             }
  188.           },
  189.           "required": [
  190.             "location"
  191.           ]
  192.         }
  193.       }
  194.     },
  195.     {
  196.       "type": "function",
  197.       "function": {
  198.         "name": "ipLocation",
  199.         "description": "通过终端设备IP地址获取其当前所在省、市、区信息。",
  200.         "parameters": {
  201.           "type": "object",
  202.           "properties": {
  203.             "ip": {
  204.               "description": "IP地址(IPv4或IPv6)",
  205.               "type": "string"
  206.             }
  207.           },
  208.           "required": [
  209.             "ip"
  210.           ]
  211.         }
  212.       }
  213.     },
  214.     {
  215.       "type": "function",
  216.       "function": {
  217.         "name": "weather",
  218.         "description": "通过行政区划代码,查询对应城市的实时天气或预报天气。",
  219.         "parameters": {
  220.           "type": "object",
  221.           "properties": {
  222.             "adcode": {
  223.               "description": "行政区划代码(可通过调用地址解析获取,输入地址或城市名,返回结果中的adcode即为行政区划代码)",
  224.               "type": "string"
  225.             },
  226.             "type": {
  227.               "description": "可选now或者future。用户查询当前天气为now,查询未来天气为future。可为空,默认为now。",
  228.               "type": "string"
  229.             }
  230.           },
  231.           "required": [
  232.             "adcode"
  233.           ]
  234.         }
  235.       }
  236.     },
  237.     {
  238.       "type": "function",
  239.       "function": {
  240.         "name": "directionWalking",
  241.         "description": "根据起终点经纬度,规划步行路线,返回包括路线总距离、预估用时等",
  242.         "parameters": {
  243.           "type": "object",
  244.           "properties": {
  245.             "from": {
  246.               "description": "起点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  247.               "type": "string"
  248.             },
  249.             "to": {
  250.               "description": "终点(目的地)点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  251.               "type": "string"
  252.             }
  253.           },
  254.           "required": [
  255.             "from",
  256.             "to"
  257.           ]
  258.         }
  259.       }
  260.     },
  261.     {
  262.       "type": "function",
  263.       "function": {
  264.         "name": "directionBicycling",
  265.         "description": "根据起终点经纬度,规划自行车骑行路线,返回包括路线总距离、预估用时等",
  266.         "parameters": {
  267.           "type": "object",
  268.           "properties": {
  269.             "from": {
  270.               "description": "起点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  271.               "type": "string"
  272.             },
  273.             "to": {
  274.               "description": "终点(目的地)点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  275.               "type": "string"
  276.             }
  277.           },
  278.           "required": [
  279.             "from",
  280.             "to"
  281.           ]
  282.         }
  283.       }
  284.     },
  285.     {
  286.       "type": "function",
  287.       "function": {
  288.         "name": "directionTransit",
  289.         "description": "公共交通路线规划,根据起终点经纬度,规划公交/地铁线路乘坐方案, 支持指定出发时间(确保线路在首末车时段内),支持时间短、少换乘、少步行、地铁优先等多种偏好,为您规划多组乘坐方案, 同时返回路线总预估用时、总距离、总步行距离、票价,具体线路如何换乘(线路名、上车站、下车站名等)、首末车时间等",
  290.         "parameters": {
  291.           "type": "object",
  292.           "properties": {
  293.             "from": {
  294.               "description": "起点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  295.               "type": "string"
  296.             },
  297.             "to": {
  298.               "description": "终点(目的地)点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  299.               "type": "string"
  300.             }
  301.           },
  302.           "required": [
  303.             "from",
  304.             "to"
  305.           ]
  306.         }
  307.       }
  308.     },
  309.     {
  310.       "type": "function",
  311.       "function": {
  312.         "name": "futureDrivingDirection",
  313.         "description": "根据起终点经纬度、未来出发时间,规划驾车驾车路线,路线会考虑未来时间的预测路况进行规划,支持返回预估用时、总距离等信息",
  314.         "parameters": {
  315.           "type": "object",
  316.           "properties": {
  317.             "departure_time": {
  318.               "description": "出发时间(时间戳格式)",
  319.               "type": "string"
  320.             },
  321.             "from": {
  322.               "description": "起点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  323.               "type": "string"
  324.             },
  325.             "to": {
  326.               "description": "终点(目的地)点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  327.               "type": "string"
  328.             }
  329.           },
  330.           "required": [
  331.             "from",
  332.             "to",
  333.             "departure_time"
  334.           ]
  335.         }
  336.       }
  337.     },
  338.     {
  339.       "type": "function",
  340.       "function": {
  341.         "name": "waypointOrder",
  342.         "description": "基于驾车路线规划,对输入的途经点以最顺路方式排序并规划路线,排序途经点最多16个。返回结果中的waypoints代表途经点的顺序",
  343.         "parameters": {
  344.           "type": "object",
  345.           "properties": {
  346.             "from": {
  347.               "description": "起点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  348.               "type": "string"
  349.             },
  350.             "need_waypoint_order": {
  351.               "description": "如果waypoints不是空,则传true",
  352.               "type": "string"
  353.             },
  354.             "to": {
  355.               "description": "终点(目的地)点经纬度信息,结构是lat,lng。 如果输入的是包含省市区信息的完整地址,可以调用地址解析获取经纬度, 如果是地点名称,可调用地点搜索获取经纬度(返回多条结果时可取第1条)",
  356.               "type": "string"
  357.             },
  358.             "waypoints": {
  359.               "description": "途经点经纬度,支持最多16个,结构是lat1,lng1;lat2,lng2;lat3,lng3....如果输入的是地址,则需要调用geocoder获取经纬度信息",
  360.               "type": "string"
  361.             }
  362.           },
  363.           "required": [
  364.             "from",
  365.             "to"
  366.           ]
  367.         }
  368.       }
  369.     }
  370.   ]
  371. }
  372. ----------------------------------------------------------------------------------------------------------------------------------------------------
  373. 返回:
  374. {
  375.   "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  376.   "provider": "Amazon Bedrock",
  377.   "model": "anthropic/claude-3.5-sonnet",
  378.   "choices": [
  379.     {
  380.       "delta": {
  381.         "role": "assistant",
  382.         "content": "我来帮您规划这段行程。这需要分几步:\n1. 先获取各个地点的具体位置和经纬度\n2. 规划加油站的最佳途经顺序\n3. 查看行驶路线\n\n让我们一步步来:\n\n1. 首先获取这些地点的经纬度:"
  383.       }
  384.     }
  385.   ],
  386.   "usage": {
  387.     "prompt_tokens": 11944,
  388.     "completion_tokens": 141,
  389.     "total_tokens": 12085
  390.   },
  391.   "streamed_data": [
  392.     {
  393.       "nonce": "a3",
  394.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  395.       "provider": "Amazon Bedrock",
  396.       "model": "anthropic/claude-3.5-sonnet",
  397.       "object": "chat.completion.chunk",
  398.       "created": 1744110839,
  399.       "choices": [
  400.         {
  401.           "index": 0,
  402.           "delta": {
  403.             "role": "assistant",
  404.             "content": ""
  405.           },
  406.           "finish_reason": null,
  407.           "native_finish_reason": null,
  408.           "logprobs": null
  409.         }
  410.       ]
  411.     },
  412.     {
  413.       "nonce": "9cf808bed3270cb4",
  414.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  415.       "provider": "Amazon Bedrock",
  416.       "model": "anthropic/claude-3.5-sonnet",
  417.       "object": "chat.completion.chunk",
  418.       "created": 1744110839,
  419.       "choices": [
  420.         {
  421.           "index": 0,
  422.           "delta": {
  423.             "role": "assistant",
  424.             "content": "我"
  425.           },
  426.           "finish_reason": null,
  427.           "native_finish_reason": null,
  428.           "logprobs": null
  429.         }
  430.       ]
  431.     },
  432.     {
  433.       "nonce": "c3",
  434.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  435.       "provider": "Amazon Bedrock",
  436.       "model": "anthropic/claude-3.5-sonnet",
  437.       "object": "chat.completion.chunk",
  438.       "created": 1744110839,
  439.       "choices": [
  440.         {
  441.           "index": 0,
  442.           "delta": {
  443.             "role": "assistant",
  444.             "content": "来"
  445.           },
  446.           "finish_reason": null,
  447.           "native_finish_reason": null,
  448.           "logprobs": null
  449.         }
  450.       ]
  451.     },
  452.     {
  453.       "nonce": "1a5a3a1e8349",
  454.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  455.       "provider": "Amazon Bedrock",
  456.       "model": "anthropic/claude-3.5-sonnet",
  457.       "object": "chat.completion.chunk",
  458.       "created": 1744110839,
  459.       "choices": [
  460.         {
  461.           "index": 0,
  462.           "delta": {
  463.             "role": "assistant",
  464.             "content": "帮您"
  465.           },
  466.           "finish_reason": null,
  467.           "native_finish_reason": null,
  468.           "logprobs": null
  469.         }
  470.       ]
  471.     },
  472.     {
  473.       "nonce": "949c",
  474.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  475.       "provider": "Amazon Bedrock",
  476.       "model": "anthropic/claude-3.5-sonnet",
  477.       "object": "chat.completion.chunk",
  478.       "created": 1744110839,
  479.       "choices": [
  480.         {
  481.           "index": 0,
  482.           "delta": {
  483.             "role": "assistant",
  484.             "content": "规划这"
  485.           },
  486.           "finish_reason": null,
  487.           "native_finish_reason": null,
  488.           "logprobs": null
  489.         }
  490.       ]
  491.     },
  492.     {
  493.       "nonce": "11c0",
  494.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  495.       "provider": "Amazon Bedrock",
  496.       "model": "anthropic/claude-3.5-sonnet",
  497.       "object": "chat.completion.chunk",
  498.       "created": 1744110839,
  499.       "choices": [
  500.         {
  501.           "index": 0,
  502.           "delta": {
  503.             "role": "assistant",
  504.             "content": "段"
  505.           },
  506.           "finish_reason": null,
  507.           "native_finish_reason": null,
  508.           "logprobs": null
  509.         }
  510.       ]
  511.     },
  512.     {
  513.       "nonce": "7049e8514f81",
  514.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  515.       "provider": "Amazon Bedrock",
  516.       "model": "anthropic/claude-3.5-sonnet",
  517.       "object": "chat.completion.chunk",
  518.       "created": 1744110839,
  519.       "choices": [
  520.         {
  521.           "index": 0,
  522.           "delta": {
  523.             "role": "assistant",
  524.             "content": "行"
  525.           },
  526.           "finish_reason": null,
  527.           "native_finish_reason": null,
  528.           "logprobs": null
  529.         }
  530.       ]
  531.     },
  532.     {
  533.       "nonce": "cf6f8026cc652491",
  534.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  535.       "provider": "Amazon Bedrock",
  536.       "model": "anthropic/claude-3.5-sonnet",
  537.       "object": "chat.completion.chunk",
  538.       "created": 1744110839,
  539.       "choices": [
  540.         {
  541.           "index": 0,
  542.           "delta": {
  543.             "role": "assistant",
  544.             "content": "程。这"
  545.           },
  546.           "finish_reason": null,
  547.           "native_finish_reason": null,
  548.           "logprobs": null
  549.         }
  550.       ]
  551.     },
  552.     {
  553.       "nonce": "6b479e3a",
  554.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  555.       "provider": "Amazon Bedrock",
  556.       "model": "anthropic/claude-3.5-sonnet",
  557.       "object": "chat.completion.chunk",
  558.       "created": 1744110839,
  559.       "choices": [
  560.         {
  561.           "index": 0,
  562.           "delta": {
  563.             "role": "assistant",
  564.             "content": "需"
  565.           },
  566.           "finish_reason": null,
  567.           "native_finish_reason": null,
  568.           "logprobs": null
  569.         }
  570.       ]
  571.     },
  572.     {
  573.       "nonce": "519a5460e5bba1a0",
  574.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  575.       "provider": "Amazon Bedrock",
  576.       "model": "anthropic/claude-3.5-sonnet",
  577.       "object": "chat.completion.chunk",
  578.       "created": 1744110839,
  579.       "choices": [
  580.         {
  581.           "index": 0,
  582.           "delta": {
  583.             "role": "assistant",
  584.             "content": "要分"
  585.           },
  586.           "finish_reason": null,
  587.           "native_finish_reason": null,
  588.           "logprobs": null
  589.         }
  590.       ]
  591.     },
  592.     {
  593.       "nonce": "05d1",
  594.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  595.       "provider": "Amazon Bedrock",
  596.       "model": "anthropic/claude-3.5-sonnet",
  597.       "object": "chat.completion.chunk",
  598.       "created": 1744110839,
  599.       "choices": [
  600.         {
  601.           "index": 0,
  602.           "delta": {
  603.             "role": "assistant",
  604.             "content": "几"
  605.           },
  606.           "finish_reason": null,
  607.           "native_finish_reason": null,
  608.           "logprobs": null
  609.         }
  610.       ]
  611.     },
  612.     {
  613.       "nonce": "3ee4",
  614.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  615.       "provider": "Amazon Bedrock",
  616.       "model": "anthropic/claude-3.5-sonnet",
  617.       "object": "chat.completion.chunk",
  618.       "created": 1744110839,
  619.       "choices": [
  620.         {
  621.           "index": 0,
  622.           "delta": {
  623.             "role": "assistant",
  624.             "content": "步:"
  625.           },
  626.           "finish_reason": null,
  627.           "native_finish_reason": null,
  628.           "logprobs": null
  629.         }
  630.       ]
  631.     },
  632.     {
  633.       "nonce": "f83b",
  634.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  635.       "provider": "Amazon Bedrock",
  636.       "model": "anthropic/claude-3.5-sonnet",
  637.       "object": "chat.completion.chunk",
  638.       "created": 1744110839,
  639.       "choices": [
  640.         {
  641.           "index": 0,
  642.           "delta": {
  643.             "role": "assistant",
  644.             "content": "\n1. 先"
  645.           },
  646.           "finish_reason": null,
  647.           "native_finish_reason": null,
  648.           "logprobs": null
  649.         }
  650.       ]
  651.     },
  652.     {
  653.       "nonce": "e6b55adf",
  654.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  655.       "provider": "Amazon Bedrock",
  656.       "model": "anthropic/claude-3.5-sonnet",
  657.       "object": "chat.completion.chunk",
  658.       "created": 1744110839,
  659.       "choices": [
  660.         {
  661.           "index": 0,
  662.           "delta": {
  663.             "role": "assistant",
  664.             "content": "获"
  665.           },
  666.           "finish_reason": null,
  667.           "native_finish_reason": null,
  668.           "logprobs": null
  669.         }
  670.       ]
  671.     },
  672.     {
  673.       "nonce": "3c284b",
  674.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  675.       "provider": "Amazon Bedrock",
  676.       "model": "anthropic/claude-3.5-sonnet",
  677.       "object": "chat.completion.chunk",
  678.       "created": 1744110839,
  679.       "choices": [
  680.         {
  681.           "index": 0,
  682.           "delta": {
  683.             "role": "assistant",
  684.             "content": "取各"
  685.           },
  686.           "finish_reason": null,
  687.           "native_finish_reason": null,
  688.           "logprobs": null
  689.         }
  690.       ]
  691.     },
  692.     {
  693.       "nonce": "5d39ab42",
  694.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  695.       "provider": "Amazon Bedrock",
  696.       "model": "anthropic/claude-3.5-sonnet",
  697.       "object": "chat.completion.chunk",
  698.       "created": 1744110839,
  699.       "choices": [
  700.         {
  701.           "index": 0,
  702.           "delta": {
  703.             "role": "assistant",
  704.             "content": "个"
  705.           },
  706.           "finish_reason": null,
  707.           "native_finish_reason": null,
  708.           "logprobs": null
  709.         }
  710.       ]
  711.     },
  712.     {
  713.       "nonce": "bdb5",
  714.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  715.       "provider": "Amazon Bedrock",
  716.       "model": "anthropic/claude-3.5-sonnet",
  717.       "object": "chat.completion.chunk",
  718.       "created": 1744110839,
  719.       "choices": [
  720.         {
  721.           "index": 0,
  722.           "delta": {
  723.             "role": "assistant",
  724.             "content": "地"
  725.           },
  726.           "finish_reason": null,
  727.           "native_finish_reason": null,
  728.           "logprobs": null
  729.         }
  730.       ]
  731.     },
  732.     {
  733.       "nonce": "260762bf77b7",
  734.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  735.       "provider": "Amazon Bedrock",
  736.       "model": "anthropic/claude-3.5-sonnet",
  737.       "object": "chat.completion.chunk",
  738.       "created": 1744110839,
  739.       "choices": [
  740.         {
  741.           "index": 0,
  742.           "delta": {
  743.             "role": "assistant",
  744.             "content": "点的具"
  745.           },
  746.           "finish_reason": null,
  747.           "native_finish_reason": null,
  748.           "logprobs": null
  749.         }
  750.       ]
  751.     },
  752.     {
  753.       "nonce": "2e",
  754.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  755.       "provider": "Amazon Bedrock",
  756.       "model": "anthropic/claude-3.5-sonnet",
  757.       "object": "chat.completion.chunk",
  758.       "created": 1744110839,
  759.       "choices": [
  760.         {
  761.           "index": 0,
  762.           "delta": {
  763.             "role": "assistant",
  764.             "content": "体位置和"
  765.           },
  766.           "finish_reason": null,
  767.           "native_finish_reason": null,
  768.           "logprobs": null
  769.         }
  770.       ]
  771.     },
  772.     {
  773.       "nonce": "c43992a3f65bb6d1",
  774.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  775.       "provider": "Amazon Bedrock",
  776.       "model": "anthropic/claude-3.5-sonnet",
  777.       "object": "chat.completion.chunk",
  778.       "created": 1744110839,
  779.       "choices": [
  780.         {
  781.           "index": 0,
  782.           "delta": {
  783.             "role": "assistant",
  784.             "content": "经"
  785.           },
  786.           "finish_reason": null,
  787.           "native_finish_reason": null,
  788.           "logprobs": null
  789.         }
  790.       ]
  791.     },
  792.     {
  793.       "nonce": "19afbefb65",
  794.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  795.       "provider": "Amazon Bedrock",
  796.       "model": "anthropic/claude-3.5-sonnet",
  797.       "object": "chat.completion.chunk",
  798.       "created": 1744110839,
  799.       "choices": [
  800.         {
  801.           "index": 0,
  802.           "delta": {
  803.             "role": "assistant",
  804.             "content": "纬度"
  805.           },
  806.           "finish_reason": null,
  807.           "native_finish_reason": null,
  808.           "logprobs": null
  809.         }
  810.       ]
  811.     },
  812.     {
  813.       "nonce": "0400bd6349573f1c",
  814.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  815.       "provider": "Amazon Bedrock",
  816.       "model": "anthropic/claude-3.5-sonnet",
  817.       "object": "chat.completion.chunk",
  818.       "created": 1744110839,
  819.       "choices": [
  820.         {
  821.           "index": 0,
  822.           "delta": {
  823.             "role": "assistant",
  824.             "content": "\n2. 规"
  825.           },
  826.           "finish_reason": null,
  827.           "native_finish_reason": null,
  828.           "logprobs": null
  829.         }
  830.       ]
  831.     },
  832.     {
  833.       "nonce": "75c3db90fa",
  834.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  835.       "provider": "Amazon Bedrock",
  836.       "model": "anthropic/claude-3.5-sonnet",
  837.       "object": "chat.completion.chunk",
  838.       "created": 1744110839,
  839.       "choices": [
  840.         {
  841.           "index": 0,
  842.           "delta": {
  843.             "role": "assistant",
  844.             "content": "划加"
  845.           },
  846.           "finish_reason": null,
  847.           "native_finish_reason": null,
  848.           "logprobs": null
  849.         }
  850.       ]
  851.     },
  852.     {
  853.       "nonce": "6e371898d0e502",
  854.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  855.       "provider": "Amazon Bedrock",
  856.       "model": "anthropic/claude-3.5-sonnet",
  857.       "object": "chat.completion.chunk",
  858.       "created": 1744110839,
  859.       "choices": [
  860.         {
  861.           "index": 0,
  862.           "delta": {
  863.             "role": "assistant",
  864.             "content": "油站的最"
  865.           },
  866.           "finish_reason": null,
  867.           "native_finish_reason": null,
  868.           "logprobs": null
  869.         }
  870.       ]
  871.     },
  872.     {
  873.       "nonce": "b95ae22b01",
  874.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  875.       "provider": "Amazon Bedrock",
  876.       "model": "anthropic/claude-3.5-sonnet",
  877.       "object": "chat.completion.chunk",
  878.       "created": 1744110839,
  879.       "choices": [
  880.         {
  881.           "index": 0,
  882.           "delta": {
  883.             "role": "assistant",
  884.             "content": "佳途"
  885.           },
  886.           "finish_reason": null,
  887.           "native_finish_reason": null,
  888.           "logprobs": null
  889.         }
  890.       ]
  891.     },
  892.     {
  893.       "nonce": "1978d5d7",
  894.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  895.       "provider": "Amazon Bedrock",
  896.       "model": "anthropic/claude-3.5-sonnet",
  897.       "object": "chat.completion.chunk",
  898.       "created": 1744110839,
  899.       "choices": [
  900.         {
  901.           "index": 0,
  902.           "delta": {
  903.             "role": "assistant",
  904.             "content": "经"
  905.           },
  906.           "finish_reason": null,
  907.           "native_finish_reason": null,
  908.           "logprobs": null
  909.         }
  910.       ]
  911.     },
  912.     {
  913.       "nonce": "c540e9faad8cf5",
  914.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  915.       "provider": "Amazon Bedrock",
  916.       "model": "anthropic/claude-3.5-sonnet",
  917.       "object": "chat.completion.chunk",
  918.       "created": 1744110839,
  919.       "choices": [
  920.         {
  921.           "index": 0,
  922.           "delta": {
  923.             "role": "assistant",
  924.             "content": "顺序"
  925.           },
  926.           "finish_reason": null,
  927.           "native_finish_reason": null,
  928.           "logprobs": null
  929.         }
  930.       ]
  931.     },
  932.     {
  933.       "nonce": "dd2671b8c9",
  934.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  935.       "provider": "Amazon Bedrock",
  936.       "model": "anthropic/claude-3.5-sonnet",
  937.       "object": "chat.completion.chunk",
  938.       "created": 1744110839,
  939.       "choices": [
  940.         {
  941.           "index": 0,
  942.           "delta": {
  943.             "role": "assistant",
  944.             "content": "\n3. 查"
  945.           },
  946.           "finish_reason": null,
  947.           "native_finish_reason": null,
  948.           "logprobs": null
  949.         }
  950.       ]
  951.     },
  952.     {
  953.       "nonce": "fb5fdb",
  954.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  955.       "provider": "Amazon Bedrock",
  956.       "model": "anthropic/claude-3.5-sonnet",
  957.       "object": "chat.completion.chunk",
  958.       "created": 1744110839,
  959.       "choices": [
  960.         {
  961.           "index": 0,
  962.           "delta": {
  963.             "role": "assistant",
  964.             "content": "看行"
  965.           },
  966.           "finish_reason": null,
  967.           "native_finish_reason": null,
  968.           "logprobs": null
  969.         }
  970.       ]
  971.     },
  972.     {
  973.       "nonce": "b73a29511e7c",
  974.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  975.       "provider": "Amazon Bedrock",
  976.       "model": "anthropic/claude-3.5-sonnet",
  977.       "object": "chat.completion.chunk",
  978.       "created": 1744110839,
  979.       "choices": [
  980.         {
  981.           "index": 0,
  982.           "delta": {
  983.             "role": "assistant",
  984.             "content": "驶路线"
  985.           },
  986.           "finish_reason": null,
  987.           "native_finish_reason": null,
  988.           "logprobs": null
  989.         }
  990.       ]
  991.     },
  992.     {
  993.       "nonce": "09fe",
  994.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  995.       "provider": "Amazon Bedrock",
  996.       "model": "anthropic/claude-3.5-sonnet",
  997.       "object": "chat.completion.chunk",
  998.       "created": 1744110839,
  999.       "choices": [
  1000.         {
  1001.           "index": 0,
  1002.           "delta": {
  1003.             "role": "assistant",
  1004.             "content": "\n\n让"
  1005.           },
  1006.           "finish_reason": null,
  1007.           "native_finish_reason": null,
  1008.           "logprobs": null
  1009.         }
  1010.       ]
  1011.     },
  1012.     {
  1013.       "nonce": "6e",
  1014.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1015.       "provider": "Amazon Bedrock",
  1016.       "model": "anthropic/claude-3.5-sonnet",
  1017.       "object": "chat.completion.chunk",
  1018.       "created": 1744110839,
  1019.       "choices": [
  1020.         {
  1021.           "index": 0,
  1022.           "delta": {
  1023.             "role": "assistant",
  1024.             "content": "我们一"
  1025.           },
  1026.           "finish_reason": null,
  1027.           "native_finish_reason": null,
  1028.           "logprobs": null
  1029.         }
  1030.       ]
  1031.     },
  1032.     {
  1033.       "nonce": "2e3ef81cd56e71d6",
  1034.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1035.       "provider": "Amazon Bedrock",
  1036.       "model": "anthropic/claude-3.5-sonnet",
  1037.       "object": "chat.completion.chunk",
  1038.       "created": 1744110839,
  1039.       "choices": [
  1040.         {
  1041.           "index": 0,
  1042.           "delta": {
  1043.             "role": "assistant",
  1044.             "content": "步步"
  1045.           },
  1046.           "finish_reason": null,
  1047.           "native_finish_reason": null,
  1048.           "logprobs": null
  1049.         }
  1050.       ]
  1051.     },
  1052.     {
  1053.       "nonce": "69791b866a94b420",
  1054.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1055.       "provider": "Amazon Bedrock",
  1056.       "model": "anthropic/claude-3.5-sonnet",
  1057.       "object": "chat.completion.chunk",
  1058.       "created": 1744110839,
  1059.       "choices": [
  1060.         {
  1061.           "index": 0,
  1062.           "delta": {
  1063.             "role": "assistant",
  1064.             "content": "来:"
  1065.           },
  1066.           "finish_reason": null,
  1067.           "native_finish_reason": null,
  1068.           "logprobs": null
  1069.         }
  1070.       ]
  1071.     },
  1072.     {
  1073.       "nonce": "db",
  1074.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1075.       "provider": "Amazon Bedrock",
  1076.       "model": "anthropic/claude-3.5-sonnet",
  1077.       "object": "chat.completion.chunk",
  1078.       "created": 1744110839,
  1079.       "choices": [
  1080.         {
  1081.           "index": 0,
  1082.           "delta": {
  1083.             "role": "assistant",
  1084.             "content": "\n\n1. "
  1085.           },
  1086.           "finish_reason": null,
  1087.           "native_finish_reason": null,
  1088.           "logprobs": null
  1089.         }
  1090.       ]
  1091.     },
  1092.     {
  1093.       "nonce": "1d445b",
  1094.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1095.       "provider": "Amazon Bedrock",
  1096.       "model": "anthropic/claude-3.5-sonnet",
  1097.       "object": "chat.completion.chunk",
  1098.       "created": 1744110839,
  1099.       "choices": [
  1100.         {
  1101.           "index": 0,
  1102.           "delta": {
  1103.             "role": "assistant",
  1104.             "content": "首"
  1105.           },
  1106.           "finish_reason": null,
  1107.           "native_finish_reason": null,
  1108.           "logprobs": null
  1109.         }
  1110.       ]
  1111.     },
  1112.     {
  1113.       "nonce": "0cf97e2eec",
  1114.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1115.       "provider": "Amazon Bedrock",
  1116.       "model": "anthropic/claude-3.5-sonnet",
  1117.       "object": "chat.completion.chunk",
  1118.       "created": 1744110839,
  1119.       "choices": [
  1120.         {
  1121.           "index": 0,
  1122.           "delta": {
  1123.             "role": "assistant",
  1124.             "content": "先获取这"
  1125.           },
  1126.           "finish_reason": null,
  1127.           "native_finish_reason": null,
  1128.           "logprobs": null
  1129.         }
  1130.       ]
  1131.     },
  1132.     {
  1133.       "nonce": "3cc30c",
  1134.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1135.       "provider": "Amazon Bedrock",
  1136.       "model": "anthropic/claude-3.5-sonnet",
  1137.       "object": "chat.completion.chunk",
  1138.       "created": 1744110839,
  1139.       "choices": [
  1140.         {
  1141.           "index": 0,
  1142.           "delta": {
  1143.             "role": "assistant",
  1144.             "content": "些地点的"
  1145.           },
  1146.           "finish_reason": null,
  1147.           "native_finish_reason": null,
  1148.           "logprobs": null
  1149.         }
  1150.       ]
  1151.     },
  1152.     {
  1153.       "nonce": "6319ca0a9d8ec971",
  1154.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1155.       "provider": "Amazon Bedrock",
  1156.       "model": "anthropic/claude-3.5-sonnet",
  1157.       "object": "chat.completion.chunk",
  1158.       "created": 1744110839,
  1159.       "choices": [
  1160.         {
  1161.           "index": 0,
  1162.           "delta": {
  1163.             "role": "assistant",
  1164.             "content": "经"
  1165.           },
  1166.           "finish_reason": null,
  1167.           "native_finish_reason": null,
  1168.           "logprobs": null
  1169.         }
  1170.       ]
  1171.     },
  1172.     {
  1173.       "nonce": "f23555",
  1174.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1175.       "provider": "Amazon Bedrock",
  1176.       "model": "anthropic/claude-3.5-sonnet",
  1177.       "object": "chat.completion.chunk",
  1178.       "created": 1744110839,
  1179.       "choices": [
  1180.         {
  1181.           "index": 0,
  1182.           "delta": {
  1183.             "role": "assistant",
  1184.             "content": "纬度:"
  1185.           },
  1186.           "finish_reason": null,
  1187.           "native_finish_reason": null,
  1188.           "logprobs": null
  1189.         }
  1190.       ]
  1191.     },
  1192.     {
  1193.       "nonce": "55460da8",
  1194.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1195.       "provider": "Amazon Bedrock",
  1196.       "model": "anthropic/claude-3.5-sonnet",
  1197.       "object": "chat.completion.chunk",
  1198.       "created": 1744110839,
  1199.       "choices": [
  1200.         {
  1201.           "index": 0,
  1202.           "delta": {
  1203.             "role": "assistant",
  1204.             "content": ""
  1205.           },
  1206.           "finish_reason": null,
  1207.           "native_finish_reason": null,
  1208.           "logprobs": null
  1209.         }
  1210.       ]
  1211.     },
  1212.     {
  1213.       "nonce": "51",
  1214.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1215.       "provider": "Amazon Bedrock",
  1216.       "model": "anthropic/claude-3.5-sonnet",
  1217.       "object": "chat.completion.chunk",
  1218.       "created": 1744110839,
  1219.       "choices": [
  1220.         {
  1221.           "delta": {
  1222.             "role": "assistant",
  1223.             "content": null,
  1224.             "tool_calls": [
  1225.               {
  1226.                 "id": "tooluse_NiqffqaITCmVtmoeIMkFNg",
  1227.                 "index": 0,
  1228.                 "type": "function",
  1229.                 "function": {
  1230.                   "name": "geocoder",
  1231.                   "arguments": ""
  1232.                 }
  1233.               }
  1234.             ]
  1235.           },
  1236.           "index": 0,
  1237.           "finish_reason": null,
  1238.           "native_finish_reason": null
  1239.         }
  1240.       ]
  1241.     },
  1242.     {
  1243.       "nonce": "1f",
  1244.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1245.       "provider": "Amazon Bedrock",
  1246.       "model": "anthropic/claude-3.5-sonnet",
  1247.       "object": "chat.completion.chunk",
  1248.       "created": 1744110839,
  1249.       "choices": [
  1250.         {
  1251.           "delta": {
  1252.             "role": "assistant",
  1253.             "content": null,
  1254.             "tool_calls": [
  1255.               {
  1256.                 "index": 0,
  1257.                 "type": "function",
  1258.                 "function": {
  1259.                   "arguments": ""
  1260.                 }
  1261.               }
  1262.             ]
  1263.           },
  1264.           "index": 0,
  1265.           "finish_reason": null,
  1266.           "native_finish_reason": null
  1267.         }
  1268.       ]
  1269.     },
  1270.     {
  1271.       "nonce": "d180bed3",
  1272.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1273.       "provider": "Amazon Bedrock",
  1274.       "model": "anthropic/claude-3.5-sonnet",
  1275.       "object": "chat.completion.chunk",
  1276.       "created": 1744110839,
  1277.       "choices": [
  1278.         {
  1279.           "delta": {
  1280.             "role": "assistant",
  1281.             "content": null,
  1282.             "tool_calls": [
  1283.               {
  1284.                 "index": 0,
  1285.                 "type": "function",
  1286.                 "function": {
  1287.                   "arguments": "{""
  1288.                 }
  1289.               }
  1290.             ]
  1291.           },
  1292.           "index": 0,
  1293.           "finish_reason": null,
  1294.           "native_finish_reason": null
  1295.         }
  1296.       ]
  1297.     },
  1298.     {
  1299.       "nonce": "1def6ce090",
  1300.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1301.       "provider": "Amazon Bedrock",
  1302.       "model": "anthropic/claude-3.5-sonnet",
  1303.       "object": "chat.completion.chunk",
  1304.       "created": 1744110839,
  1305.       "choices": [
  1306.         {
  1307.           "delta": {
  1308.             "role": "assistant",
  1309.             "content": null,
  1310.             "tool_calls": [
  1311.               {
  1312.                 "index": 0,
  1313.                 "type": "function",
  1314.                 "function": {
  1315.                   "arguments": "ad"
  1316.                 }
  1317.               }
  1318.             ]
  1319.           },
  1320.           "index": 0,
  1321.           "finish_reason": null,
  1322.           "native_finish_reason": null
  1323.         }
  1324.       ]
  1325.     },
  1326.     {
  1327.       "nonce": "75",
  1328.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1329.       "provider": "Amazon Bedrock",
  1330.       "model": "anthropic/claude-3.5-sonnet",
  1331.       "object": "chat.completion.chunk",
  1332.       "created": 1744110839,
  1333.       "choices": [
  1334.         {
  1335.           "delta": {
  1336.             "role": "assistant",
  1337.             "content": null,
  1338.             "tool_calls": [
  1339.               {
  1340.                 "index": 0,
  1341.                 "type": "function",
  1342.                 "function": {
  1343.                   "arguments": "dress""
  1344.                 }
  1345.               }
  1346.             ]
  1347.           },
  1348.           "index": 0,
  1349.           "finish_reason": null,
  1350.           "native_finish_reason": null
  1351.         }
  1352.       ]
  1353.     },
  1354.     {
  1355.       "nonce": "39b54669",
  1356.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1357.       "provider": "Amazon Bedrock",
  1358.       "model": "anthropic/claude-3.5-sonnet",
  1359.       "object": "chat.completion.chunk",
  1360.       "created": 1744110839,
  1361.       "choices": [
  1362.         {
  1363.           "delta": {
  1364.             "role": "assistant",
  1365.             "content": null,
  1366.             "tool_calls": [
  1367.               {
  1368.                 "index": 0,
  1369.                 "type": "function",
  1370.                 "function": {
  1371.                   "arguments": ": "深圳会展中心"}"
  1372.                 }
  1373.               }
  1374.             ]
  1375.           },
  1376.           "index": 0,
  1377.           "finish_reason": null,
  1378.           "native_finish_reason": null
  1379.         }
  1380.       ]
  1381.     },
  1382.     {
  1383.       "nonce": "4509",
  1384.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1385.       "provider": "Amazon Bedrock",
  1386.       "model": "anthropic/claude-3.5-sonnet",
  1387.       "object": "chat.completion.chunk",
  1388.       "created": 1744110839,
  1389.       "choices": [
  1390.         {
  1391.           "index": 0,
  1392.           "delta": {
  1393.             "role": "assistant",
  1394.             "content": ""
  1395.           },
  1396.           "finish_reason": null,
  1397.           "native_finish_reason": null,
  1398.           "logprobs": null
  1399.         }
  1400.       ]
  1401.     },
  1402.     {
  1403.       "nonce": "edb0917e",
  1404.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1405.       "provider": "Amazon Bedrock",
  1406.       "model": "anthropic/claude-3.5-sonnet",
  1407.       "object": "chat.completion.chunk",
  1408.       "created": 1744110839,
  1409.       "choices": [
  1410.         {
  1411.           "index": 0,
  1412.           "delta": {
  1413.             "role": "assistant",
  1414.             "content": ""
  1415.           },
  1416.           "finish_reason": "tool_calls",
  1417.           "native_finish_reason": "tool_calls",
  1418.           "logprobs": null
  1419.         }
  1420.       ]
  1421.     },
  1422.     {
  1423.       "nonce": "f8bb8536b4dc32",
  1424.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1425.       "provider": "Amazon Bedrock",
  1426.       "model": "anthropic/claude-3.5-sonnet",
  1427.       "object": "chat.completion.chunk",
  1428.       "created": 1744110839,
  1429.       "choices": [
  1430.         {
  1431.           "index": 0,
  1432.           "delta": {
  1433.             "role": "assistant",
  1434.             "content": ""
  1435.           },
  1436.           "finish_reason": null,
  1437.           "native_finish_reason": null,
  1438.           "logprobs": null
  1439.         }
  1440.       ]
  1441.     },
  1442.     {
  1443.       "nonce": "7450c6b8a93ceb",
  1444.       "id": "gen-1744110839-tKMReVlveRBEHdEelZCW",
  1445.       "provider": "Amazon Bedrock",
  1446.       "model": "anthropic/claude-3.5-sonnet",
  1447.       "object": "chat.completion.chunk",
  1448.       "created": 1744110839,
  1449.       "choices": [
  1450.         {
  1451.           "index": 0,
  1452.           "delta": {
  1453.             "role": "assistant",
  1454.             "content": ""
  1455.           },
  1456.           "finish_reason": null,
  1457.           "native_finish_reason": null,
  1458.           "logprobs": null
  1459.         }
  1460.       ],
  1461.       "usage": {
  1462.         "prompt_tokens": 11944,
  1463.         "completion_tokens": 141,
  1464.         "total_tokens": 12085
  1465.       }
  1466.     }
  1467.   ]
  1468. }
复制代码
来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!

相关推荐

您需要登录后才可以回帖 登录 | 立即注册