{"id":1746,"date":"2023-06-14T03:37:16","date_gmt":"2023-06-13T19:37:16","guid":{"rendered":"https:\/\/www.aqwu.net\/wp\/?p=1746"},"modified":"2024-07-26T12:50:51","modified_gmt":"2024-07-26T04:50:51","slug":"openai-api-function-calling","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=1746","title":{"rendered":"OpenAI api Function calling"},"content":{"rendered":"\n<p>Openai \u7684 API \u73b0\u5728\u53ef\u4ee5\u8fdb\u884c\u51fd\u6570\u8c03\u7528\uff0c\u771f\u6b63\u63a5\u5165\u4e86\u4e92\u8054\u7f51\u3002\u8fd9\u662f\u6253\u7b97\u6487\u5f03\u63d2\u4ef6\u4e86\uff1f<\/p>\n\n\n\n<p>2023\u5e746\u670813\u65e5\uff0copenai.com \u5b98\u65b9\u7f51\u7ad9\u8fdb\u884c\u4e86\u65b0\u7684\u6280\u672f\u66f4\u65b0\uff0c\u63d0\u5230\u4e86\u51fd\u6570\u8c03\u7528\u7684\u65b0\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u94fe\u63a5\uff1a<a href=\"https:\/\/openai.com\/blog\/function-calling-and-other-api-updates\">\u51fd\u6570\u8c03\u7528\u548c\u5176\u4ed6 API \u66f4\u65b0 (openai.com)<\/a><\/p>\n\n\n\n<p>\u5177\u4f53\u6307\u5bfc\u5728\uff1a<a href=\"https:\/\/platform.openai.com\/docs\/guides\/gpt\/function-calling\">GPT &#8211; OpenAI API<\/a><\/p>\n\n\n\n<p>\u4f8b\u5b50\u5728\uff1a<a href=\"https:\/\/github.com\/openai\/openai-cookbook\/blob\/main\/examples\/How_to_call_functions_with_chat_models.ipynb\">openai-cookbook\/examples\/How_to_call_functions_with_chat_models.ipynb at main \u00b7 openai\/openai-cookbook \u00b7 GitHub<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\">\u51fd\u6570\u8c03\u7528<\/h2>\n\n\n\n<p>\u5f00\u53d1\u4eba\u5458\u73b0\u5728\u53ef\u4ee5\u5c06\u51fd\u6570\u63cf\u8ff0\u4e3a&nbsp;<code>gpt-4-0613<\/code>&nbsp;\u548c&nbsp;<code>gpt-3.5-turbo-0613<\/code>&nbsp;\uff0c\u5e76\u8ba9\u6a21\u578b\u667a\u80fd\u5730\u9009\u62e9\u8f93\u51fa\u5305\u542b\u53c2\u6570\u7684 JSON \u5bf9\u8c61\u6765\u8c03\u7528\u8fd9\u4e9b\u51fd\u6570\u3002\u8fd9\u662f\u4e00\u79cd\u5c06 GPT \u7684\u529f\u80fd\u4e0e\u5916\u90e8\u5de5\u5177\u548c API \u66f4\u53ef\u9760\u5730\u8fde\u63a5\u8d77\u6765\u7684\u65b0\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e9b\u6a21\u578b\u5df2\u7ecf\u8fc7\u5fae\u8c03\uff0c\u65e2\u53ef\u4ee5\u68c0\u6d4b\u4f55\u65f6\u9700\u8981\u8c03\u7528\u51fd\u6570\uff08\u53d6\u51b3\u4e8e\u7528\u6237\u7684\u8f93\u5165\uff09\uff0c\u53c8\u53ef\u4ee5\u4f7f\u7528\u7b26\u5408\u51fd\u6570\u7b7e\u540d\u7684 JSON \u8fdb\u884c\u54cd\u5e94\u3002\u51fd\u6570\u8c03\u7528\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u66f4\u53ef\u9760\u5730\u4ece\u6a21\u578b\u4e2d\u83b7\u53d6\u7ed3\u6784\u5316\u6570\u636e\u3002\u4f8b\u5982\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u521b\u5efa\u804a\u5929\u673a\u5668\u4eba\uff0c\u901a\u8fc7\u8c03\u7528\u5916\u90e8\u5de5\u5177\uff08\u4f8b\u5982\uff0cChatGPT \u63d2\u4ef6\uff09\u6765\u56de\u7b54\u95ee\u9898<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u5c06\u8bf8\u5982\u201c\u5411 Anya \u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u4ee5\u67e5\u770b\u5979\u662f\u5426\u60f3\u5728\u4e0b\u5468\u4e94\u559d\u5496\u5561\u201d\u4e4b\u7c7b\u7684\u67e5\u8be2\u8f6c\u6362\u4e3a\u7c7b\u4f3c \u7684\u51fd\u6570\u8c03\u7528\uff0c\u6216\u5c06\u201c\u6ce2\u58eb\u987f\u7684\u5929\u6c14\u600e\u4e48\u6837\uff1f\u201d\u8f6c\u6362\u4e3a \u3002<code>send_email(to: string, body: string)<\/code><code>get_current_weather(location: string, unit: 'celsius' | 'fahrenheit')<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5c06\u81ea\u7136\u8bed\u8a00\u8f6c\u6362\u4e3a API \u8c03\u7528\u6216\u6570\u636e\u5e93\u67e5\u8be2<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u5c06\u201c\u672c\u6708\u6211\u7684\u5341\u5927\u5ba2\u6237\u662f\u8c01\uff1f\u201d\u8f6c\u6362\u4e3a\u5185\u90e8 API \u8c03\u7528\uff0c\u4f8b\u5982 \uff0c\u6216\u5c06\u201cAcme\uff0c Inc. \u4e0a\u4e2a\u6708\u4e0b\u4e86\u591a\u5c11\u8ba2\u5355\uff1f\u201d\u8f6c\u6362\u4e3a\u4f7f\u7528 SQL \u67e5\u8be2\u3002<code>get_customers_by_revenue(start_date: string, end_date: string, limit: int)<\/code><code>sql_query(query: string)<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4ece\u6587\u672c\u4e2d\u63d0\u53d6\u7ed3\u6784\u5316\u6570\u636e<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u5b9a\u4e49\u4e00\u4e2a\u540d\u4e3a \u7684\u51fd\u6570\uff0c\u4ee5\u63d0\u53d6\u7ef4\u57fa\u767e\u79d1\u6587\u7ae0\u4e2d\u63d0\u5230\u7684\u6240\u6709\u4eba\u3002<code>extract_people_data(people: [{name: string, birthday: string, location: string}])<\/code><\/p>\n\n\n\n<p>\u8fd9\u4e9b\u7528\u4f8b\u7531\u7aef\u70b9\u4e2d\u7684\u65b0 API \u53c2\u6570\u542f\u7528\uff0c\u5e76\u4e14\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u901a\u8fc7 JSON \u67b6\u6784\u5411\u6a21\u578b\u63cf\u8ff0\u51fd\u6570\uff0c\u5e76\u9009\u62e9\u6027\u5730\u8981\u6c42\u5b83\u8c03\u7528\u7279\u5b9a\u51fd\u6570\u3002\u5f00\u59cb\u4f7f\u7528\u6211\u4eec\u7684<code>\/v1\/chat\/completionsfunctionsfunction_call<\/code><a rel=\"noreferrer noopener\" href=\"https:\/\/platform.openai.com\/docs\/guides\/gpt\/function-calling\" target=\"_blank\">\u5f00\u53d1\u4eba\u5458\u6587\u6863<\/a>\u548c<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/openai\/evals\" target=\"_blank\">\u6dfb\u52a0\u57c3\u74e6\u5c14\u65af<\/a>\u5982\u679c\u60a8\u53d1\u73b0\u51fd\u6570\u8c03\u7528\u53ef\u4ee5\u6539\u8fdb\u7684\u60c5\u51b5.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>Function calling example&nbsp;\u51fd\u6570\u8c03\u7528\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u95ee\u9898\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>What\u2019s the weather like in Boston right now?\n\u6ce2\u58eb\u987f \u73b0\u5728\u7684\u5929\u6c14\u600e\u4e48\u6837\uff1f<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u6b65\u9aa4 1\u00b7OpenAI API&nbsp;<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Call the model with functions and the user\u2019s input\n\u4f7f\u7528\u51fd\u6570\u548c\u7528\u6237\u7684\u8f93\u5165\u8c03\u7528\u6a21\u578b<\/code><\/pre>\n\n\n\n<p><strong>Request \u8bf7\u6c42<\/strong><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \" >curl https:\/\/api.openai.com\/v1\/chat\/completions -u :$OPENAI_API_KEY -H 'Content-Type: application\/json' -d '{\n  \"model\": \"gpt-3.5-turbo-0613\",\n  \"messages\": [\n    {\"role\": \"user\", \"content\": \"What is the weather like in Boston?\"}\n  ],\n  \"functions\": [\n    {\n      \"name\": \"get_current_weather\",\n      \"description\": \"Get the current weather in a given location\",\n      \"parameters\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"location\": {\n            \"type\": \"string\",\n            \"description\": \"The city and state, e.g. San Francisco, CA\"\n          },\n          \"unit\": {\n            \"type\": \"string\",\n            \"enum\": [\"celsius\", \"fahrenheit\"]\n          }\n        },\n        \"required\": [\"location\"]\n      }\n    }\n  ]\n}'<\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\u6ce8\u89e3<\/strong>\uff0c\u51fd\u6570\u7684\u4e3b\u8981\u529f\u80fd\u662f\u83b7\u53d6\u7ed9\u5b9a\u4f4d\u7f6e\u7684\u5929\u6c14\u60c5\u51b5\u3002\n\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u8be2\u95ee\uff0cOpenAI, \u7ed9\u51fa\u7ed9\u5b9a\u5730\u70b9\u7684\u57ce\u5e02\u548c\u5dde\n\u8fd9\u91cc\u8be2\u95ee\u7684\u662f Boston \u6ce2\u58eb\u987f\uff08\u7f8e\u56fd\u9ebb\u8428\u8bf8\u585e\u5dde\u6e2f\u5e02\uff09\ncelsius - \u6444\u6c0f\u5ea6, fahrenheit - \u534e\u6c0f\u6e29\u5ea6\n\u6700\u540e\u8981\u6c42\u8fd4\u56de <strong>location<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Response&nbsp;\u54cd\u5e94<\/strong><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \" >{\n  \"id\": \"chatcmpl-123\",\n  ...\n  \"choices\": [{\n    \"index\": 0,\n    \"message\": {\n      \"role\": \"assistant\",\n      \"content\": null,\n      \"function_call\": {\n        \"name\": \"get_current_weather\",\n        \"arguments\": \"{ \\\"location\\\": \\\"Boston, MA\\\"}\"\n      }\n    },\n    \"finish_reason\": \"function_call\"\n  }]\n}<\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\u6ce8\u89e3<\/strong>\uff0cOpenAI\u6839\u636e\u63d0\u793a\u6837\u4f8b\uff08San Francisco, CA\uff09, \u8fd4\u56de\u4e86 location\uff1a Boston, MA\uff0c\n\u800c\u8fd9\u4e2alocaltion \u662fjson\u683c\u5f0f\uff0c\u6b63\u597d\u53ef\u4ee5\u7ed9\u7b2c\u4e09\u65b9API\u4f7f\u7528\uff0c\u4e0b\u9762\u4f7f\u7528\u7684\u662fweatherapi.com \u7684api<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u6b65\u9aa4 2\u00b7Third party API<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Use the model response to call your API\n\u4f7f\u7528\u6a21\u578b\u54cd\u5e94\u8c03\u7528 \u7b2c\u4e09\u65b9 API<\/code><\/pre>\n\n\n\n<p><strong>Request&nbsp;\u8bf7\u6c42<\/strong>\uff08\u8bf7\u6c42\u7b2c\u4e09\u65b9\uff09<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \" >curl https:\/\/weatherapi.com\/...\n\ncurl http:\/\/api.weatherapi.com\/v1\/current.json?key=&lt;YOUR_API_KEY&gt;&amp;q=Boston,%20MA<\/pre><\/div>\n\n\n\n<p><strong>Response&nbsp;\u54cd\u5e94<\/strong>\uff08\u7b2c\u4e09\u65b9\u54cd\u5e94\uff09<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \" >{ \"temperature\": 22, \"unit\": \"celsius\", \"description\": \"Sunny\" }<\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\u6ce8\u89e3\uff0c\u7b2c\u4e09\u65b9\u4e5f\u8fd4\u56de\u4e86json \u683c\u5f0f\u3002<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u6b65\u9aa4 3\u00b7OpenAI API<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Send the response back to the model to summarize\n\u5c06\u54cd\u5e94\u53d1\u9001\u56de\u6a21\u578b\u8fdb\u884c\u6c47\u603b\n<\/code><\/pre>\n\n\n\n<p><strong>Request \u8bf7\u6c42<\/strong><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \" >curl https:\/\/api.openai.com\/v1\/chat\/completions -u :$OPENAI_API_KEY -H 'Content-Type: application\/json' -d '{\n  \"model\": \"gpt-3.5-turbo-0613\",\n  \"messages\": [\n    {\"role\": \"user\", \"content\": \"What is the weather like in Boston?\"},\n    {\"role\": \"assistant\", \"content\": null, \"function_call\": {\"name\": \"get_current_weather\", \"arguments\": \"{ \"location\": \"Boston, MA\"}\"}},\n    {\"role\": \"function\", \"name\": \"get_current_weather\", \"content\": \"{\"temperature\": \"22\", \"unit\": \"celsius\", \"description\": \"Sunny\"}\"}\n  ],\n  \"functions\": [\n    {\n      \"name\": \"get_current_weather\",\n      \"description\": \"Get the current weather in a given location\",\n      \"parameters\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"location\": {\n            \"type\": \"string\",\n            \"description\": \"The city and state, e.g. San Francisco, CA\"\n          },\n          \"unit\": {\n            \"type\": \"string\",\n            \"enum\": [\"celsius\", \"fahrenheit\"]\n          }\n        },\n        \"required\": [\"location\"]\n      }\n    }\n  ]\n}'<\/pre><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\u6ce8\u89e3\uff1a<\/strong> \u7528\u6237\u5411 openai api \u63d0\u4f9b\u4e86\u4e0a\u4e0b\u6587\uff0c\u5305\u62ec\u7b2c\u4e09\u65b9\uff08function)\u7684\u8fd4\u56de<\/code><\/pre>\n\n\n\n<p><strong>Response&nbsp;\u54cd\u5e94<\/strong><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \" >{\n  \"id\": \"chatcmpl-123\",\n  ...\n  \"choices\": [{\n    \"index\": 0,\n    \"message\": {\n      \"role\": \"assistant\",\n      \"content\": \"The weather in Boston is currently sunny with a temperature of 22 degrees Celsius.\",\n    },\n    \"finish_reason\": \"stop\"\n  }]\n}<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u81ea\u7136\u8bed\u8a00\u7684\u54cd\u5e94<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>The weather in Boston is currently sunny with a temperature of 22 degrees Celsius.\n\u6ce2\u58eb\u987f\u7684\u5929\u6c14\u76ee\u524d\u6674\u6717\uff0c\u6c14\u6e29\u4e3a22\u6444\u6c0f\u5ea6\u3002<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\u6ce8\u89e3\uff1a<\/strong>\u5230\u8fd9\u91cc\uff0c\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u7684\u8f6c\u6362\uff0c\u7ec8\u4e8e\u5b8c\u6210\u81ea\u7136\u8bed\u8a00\u5bf9\u8bdd\u3002\n1.\u7528\u6237\u628a\u95ee\u9898\u548c\u51fd\u6570\u529f\u80fd\u4ea4\u7ed9openai;\n2.openai \u901a\u8fc7 json\u683c\u5f0f\u8fd4\u56de\u80fd\u5904\u7406\u7684\u95ee\u9898\uff08\u6bd4\u5982\uff0c\u4e00\u4e2a\u6a21\u7cca\u7684\u5730\u70b9\uff0c\u8f6c\u6362\u4e3a\u51c6\u786e\u7684\u57ce\u5e02\u548c\u5dde\uff09;\n3.\u7528\u6237\u901a\u8fc7\u8fd4\u56de\u7684\u5177\u4f53\u7b54\u6848\uff0c\u8c03\u7528\u81ea\u5df1\u7684\u6570\u636e\u5e93\uff0c\u6216\u662f\u7b2c\u4e09\u65b9api,\u83b7\u53d6json\u683c\u5f0f\u7684\u6570\u636e;\n4.\u628a\u4e0a\u4e0b\u6587\u548c\u8fd4\u56de\u7684json\u6570\u636e\u6c47\u603b\u7ed9openai;\n5.openai \u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u8fd4\u56de\u7528\u6237\u63d0\u51fa\u7684\u95ee\u9898\u3002<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\u901a\u8fc7\u51fd\u6570\u8fd9\u79cd\u65b9\u6cd5\uff0copenai api \u5c31\u771f\u6b63\u8fde\u4e0a\u4e86\u4e92\u8054\u7f51\uff0copenai\u7684\u63d2\u4ef6\u529f\u80fd\u53ef\u80fd\u5c31\u4e0d\u9999\u4e86\u3002\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Openai \u7684 API \u73b0\u5728\u53ef\u4ee5\u8fdb\u884c\u51fd\u6570\u8c03\u7528\uff0c\u771f\u6b63\u63a5\u5165\u4e86\u4e92\u8054\u7f51\u3002\u8fd9\u662f\u6253\u7b97\u6487\u5f03\u63d2\u4ef6\u4e86\uff1f 2023\u5e746\u670813\u65e5\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[313,289,312,43],"tags":[242,314],"class_list":["post-1746","post","type-post","status-publish","format-standard","hentry","category-chatgpt","category-gpt","category-openai","category-infoarticle","tag-chatgpt","tag-openai-api"],"views":2378,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1746"}],"version-history":[{"count":10,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1746\/revisions"}],"predecessor-version":[{"id":4334,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1746\/revisions\/4334"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}