{"id":3094,"date":"2024-04-13T20:33:24","date_gmt":"2024-04-13T12:33:24","guid":{"rendered":"https:\/\/www.aqwu.net\/wp\/?p=3094"},"modified":"2024-04-28T19:56:14","modified_gmt":"2024-04-28T11:56:14","slug":"openai-%e4%bd%bf%e7%94%a8%e5%b5%8c%e5%85%a5%e8%bf%9b%e8%a1%8c%e4%bb%a3%e7%a0%81%e6%90%9c%e7%b4%a2","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=3094","title":{"rendered":"OpenAI \u4f7f\u7528\u5d4c\u5165\u8fdb\u884c\u4ee3\u7801\u641c\u7d22"},"content":{"rendered":"\n<p>\u6b64\u7b14\u8bb0\u672c\u6f14\u793a\u5982\u4f55\u4f7f\u7528 Ada \u5d4c\u5165\u6765\u5b9e\u73b0\u8bed\u4e49\u4ee3\u7801\u641c\u7d22\u3002\u5728\u672c\u6f14\u793a\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u81ea\u5df1\u7684 openai-python \u4ee3\u7801\u5b58\u50a8\u5e93\u3002\u6211\u4eec\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u4ef6\u89e3\u6790\u7248\u672c\uff0c\u5e76\u4ece python \u6587\u4ef6\u4e2d\u63d0\u53d6\u51fd\u6570\uff0c\u53ef\u4ee5\u5d4c\u5165\u3001\u7d22\u5f15\u548c\u67e5\u8be2\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. \u5e2e\u52a9\u7a0b\u5e8f\u51fd\u6570<\/strong><\/h2>\n\n\n\n<p>\u6211\u4eec\u9996\u5148\u8bbe\u7f6e\u4e86\u4e00\u4e9b\u7b80\u5355\u7684\u89e3\u6790\u51fd\u6570\uff0c\u5141\u8bb8\u6211\u4eec\u4ece\u4ee3\u7801\u5e93\u4e2d\u63d0\u53d6\u91cd\u8981\u4fe1\u606f\u3002<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \">import pandas as pd\nfrom pathlib import Path\n\nDEF_PREFIXES = ['def ', 'async def ']\nNEWLINE = '\\n'\n\ndef get_function_name(code):\n    \"\"\"\n    Extract function name from a line beginning with 'def' or 'async def'.\n    \"\"\"\n    for prefix in DEF_PREFIXES:\n        if code.startswith(prefix):\n            return code[len(prefix): code.index('(')]\n\n\ndef get_until_no_space(all_lines, i):\n    \"\"\"\n    Get all lines until a line outside the function definition is found.\n    \"\"\"\n    ret = [all_lines[i]]\n    for j in range(i + 1, len(all_lines)):\n        if len(all_lines[j]) == 0 or all_lines[j][0] in [' ', '\\t', ')']:\n            ret.append(all_lines[j])\n        else:\n            break\n    return NEWLINE.join(ret)\n\n\ndef get_functions(filepath):\n    \"\"\"\n    Get all functions in a Python file.\n    \"\"\"\n    with open(filepath, 'r') as file:\n        all_lines = file.read().replace('\\r', NEWLINE).split(NEWLINE)\n        for i, l in enumerate(all_lines):\n            for prefix in DEF_PREFIXES:\n                if l.startswith(prefix):\n                    code = get_until_no_space(all_lines, i)\n                    function_name = get_function_name(code)\n                    yield {\n                        'code': code,\n                        'function_name': function_name,\n                        'filepath': filepath,\n                    }\n                    break\n\n\ndef extract_functions_from_repo(code_root):\n    \"\"\"\n    Extract all .py functions from the repository.\n    \"\"\"\n    code_files = list(code_root.glob('**\/*.py'))\n\n    num_files = len(code_files)\n    print(f'Total number of .py files: {num_files}')\n\n    if num_files == 0:\n        print('Verify openai-python repo exists and code_root is set correctly.')\n        return None\n\n    all_funcs = [\n        func\n        for code_file in code_files\n        for func in get_functions(str(code_file))\n    ]\n\n    num_funcs = len(all_funcs)\n    print(f'Total number of functions extracted: {num_funcs}')\n\n    return all_funcs<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u6570\u636e\u52a0\u8f7d<\/strong><\/h2>\n\n\n\n<p>\u9700\u8981\u514b\u9686 openai-python<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \">!git clone https:\/\/github.com\/openai\/openai-python<\/pre><\/div>\n\n\n\n<p>\u6211\u4eec\u5c06\u9996\u5148\u52a0\u8f7d openai-python \u6587\u4ef6\u5939\uff0c\u5e76\u4f7f\u7528\u6211\u4eec\u4e0a\u9762\u5b9a\u4e49\u7684\u51fd\u6570\u63d0\u53d6\u6240\u9700\u7684\u4fe1\u606f\u3002<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \"># Set user root directory to the 'openai-python' repository\nimport os\n\n# \u83b7\u53d6\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\ncurrent_directory = os.getcwd()\n\n# Assumes the 'openai-python' repository exists in the user's root directory\ncurrent_directory = current_directory + '\\\\openai-python'\n# \u5047\u8bbecode_root\u662f\u4f60\u60f3\u8981\u641c\u7d22\u7684\u76ee\u5f55\u7684\u8def\u5f84\ncode_root = Path(current_directory)\n#print(code_root)\n\n# Extract all functions from the repository\nall_funcs = extract_functions_from_repo(code_root)<\/pre><\/div>\n\n\n\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \">Total number of .py files: 289\nTotal number of functions extracted: 349<\/pre><\/div>\n\n\n\n<p>\u73b0\u5728\u6211\u4eec\u6709\u4e86\u5185\u5bb9\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u6570\u636e\u4f20\u9012\u7ed9&nbsp;<code>text-embedding-3-small<\/code>&nbsp;\u6a21\u578b\u5e76\u53d6\u56de\u6211\u4eec\u7684\u5411\u91cf\u5d4c\u5165\u3002<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \">from embeddings_utils import get_embedding\n\ndf = pd.DataFrame(all_funcs)\ndf['code_embedding'] = df['code'].apply(lambda x: get_embedding(x, model='text-embedding-3-small'))\ndf['filepath'] = df['filepath'].map(lambda x: Path(x).relative_to(code_root))\ndf.to_csv(\"data\/code_search_openai-python.csv\", index=False)\ndf.head()<\/pre><\/div>\n\n\n\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"185\" src=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-16-1024x185.png\" alt=\"\" class=\"wp-image-3108\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-16-1024x185.png 1024w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-16-300x54.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-16-768x139.png 768w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-16.png 1469w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u6d4b\u8bd5<\/strong><\/h2>\n\n\n\n<p>\u8ba9\u6211\u4eec\u901a\u8fc7\u4e00\u4e9b\u7b80\u5355\u7684\u67e5\u8be2\u6765\u6d4b\u8bd5\u6211\u4eec\u7684\u7ec8\u7ed3\u70b9\u3002\u5982\u679c\u60a8\u719f\u6089&nbsp;<code>openai-python<\/code>&nbsp;\u5b58\u50a8\u5e93\uff0c\u60a8\u4f1a\u53d1\u73b0\u6211\u4eec\u53ea\u9700\u7b80\u5355\u7684\u82f1\u6587\u63cf\u8ff0\u5373\u53ef\u8f7b\u677e\u627e\u5230\u6211\u4eec\u6b63\u5728\u5bfb\u627e\u7684\u51fd\u6570\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a search_functions \u65b9\u6cd5\uff0c\u8be5\u65b9\u6cd5\u83b7\u53d6\u5305\u542b\u5d4c\u5165\u3001\u67e5\u8be2\u5b57\u7b26\u4e32\u548c\u5176\u4ed6\u4e00\u4e9b\u914d\u7f6e\u9009\u9879\u7684\u6570\u636e\u3002\u641c\u7d22\u6570\u636e\u5e93\u7684\u8fc7\u7a0b\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1.\u6211\u4eec\u9996\u5148\u5c06\u67e5\u8be2\u5b57\u7b26\u4e32 \uff08code_query\uff09 \u5d4c\u5165\u5230&nbsp;<code>text-embedding-3-small<\/code>&nbsp;.\u8fd9\u91cc\u7684\u63a8\u7406\u662f\uff0c\u50cf\u201c\u53cd\u8f6c\u5b57\u7b26\u4e32\u7684\u51fd\u6570\u201d\u8fd9\u6837\u7684\u67e5\u8be2\u5b57\u7b26\u4e32\u548c\u50cf\u201cdef reverse\uff08string\uff09\uff1a return string[\uff1a\uff1a-1]\u201d\u8fd9\u6837\u7684\u51fd\u6570\u5728\u5d4c\u5165\u65f6\u4f1a\u975e\u5e38\u76f8\u4f3c\u3002<\/li>\n\n\n\n<li>2.\u7136\u540e\uff0c\u6211\u4eec\u8ba1\u7b97\u67e5\u8be2\u5b57\u7b26\u4e32\u5d4c\u5165\u4e0e\u6570\u636e\u5e93\u4e2d\u6240\u6709\u6570\u636e\u70b9\u4e4b\u95f4\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\u3002\u8fd9\u7ed9\u51fa\u4e86\u6bcf\u4e2a\u70b9\u548c\u6211\u4eec\u7684\u67e5\u8be2\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002<\/li>\n\n\n\n<li>3.\u6700\u540e\uff0c\u6211\u4eec\u6309\u6240\u6709\u6570\u636e\u70b9\u4e0e\u67e5\u8be2\u5b57\u7b26\u4e32\u7684\u8ddd\u79bb\u5bf9\u5b83\u4eec\u8fdb\u884c\u6392\u5e8f\uff0c\u5e76\u8fd4\u56de\u51fd\u6570\u53c2\u6570\u4e2d\u8bf7\u6c42\u7684\u7ed3\u679c\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \">from embeddings_utils import cosine_similarity\n\ndef search_functions(df, code_query, n=3, pprint=True, n_lines=7):\n    embedding = get_embedding(code_query, model='text-embedding-3-small')\n    df['similarities'] = df.code_embedding.apply(lambda x: cosine_similarity(x, embedding))\n\n    res = df.sort_values('similarities', ascending=False).head(n)\n\n    if pprint:\n        for r in res.iterrows():\n            print(f\"{r[1].filepath}:{r[1].function_name}  score={round(r[1].similarities, 3)}\")\n            print(\"\\n\".join(r[1].code.split(\"\\n\")[:n_lines]))\n            print('-' * 70)\n\n    return res\n\nres = search_functions(df, 'fine-tuning input data validation logic', n=3)\n<\/pre><\/div>\n\n\n\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"434\" src=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-17-1024x434.png\" alt=\"\" class=\"wp-image-3111\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-17-1024x434.png 1024w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-17-300x127.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-17-768x326.png 768w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-17-1536x652.png 1536w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-17.png 1671w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \">res = search_functions(df, 'find common suffix', n=2, n_lines=10)<\/pre><\/div>\n\n\n\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"401\" src=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-18-1024x401.png\" alt=\"\" class=\"wp-image-3113\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-18-1024x401.png 1024w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-18-300x118.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-18-768x301.png 768w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-18-1536x602.png 1536w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-18.png 1659w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \">res = search_functions(df, 'Command line interface for fine-tuning', n=1, n_lines=20)<\/pre><\/div>\n\n\n\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"380\" src=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-19-1024x380.png\" alt=\"\" class=\"wp-image-3114\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-19-1024x380.png 1024w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-19-300x111.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-19-768x285.png 768w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-19-1536x569.png 1536w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-19.png 1662w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \">res = search_functions(df, 'find main', n=1, n_lines=20)<\/pre><\/div>\n\n\n\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"833\" height=\"327\" src=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-20.png\" alt=\"\" class=\"wp-image-3117\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-20.png 833w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-20-300x118.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-20-768x301.png 768w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:python decode:true \" >res = search_functions(df, 'Completions API tests', n=3)<\/pre><\/div>\n\n\n\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"629\" src=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-21-1024x629.png\" alt=\"\" class=\"wp-image-3119\" srcset=\"https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-21-1024x629.png 1024w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-21-300x184.png 300w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-21-768x472.png 768w, https:\/\/www.aqwu.net\/wp\/wp-content\/uploads\/2024\/04\/\u56fe\u7247-21.png 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u6b64\u7b14\u8bb0\u672c\u6f14\u793a\u5982\u4f55\u4f7f\u7528 Ada \u5d4c\u5165\u6765\u5b9e\u73b0\u8bed\u4e49\u4ee3\u7801\u641c\u7d22\u3002\u5728\u672c\u6f14\u793a\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u81ea\u5df1\u7684 openai-python  [&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":[289,442,312],"tags":[242,314],"class_list":["post-3094","post","type-post","status-publish","format-standard","hentry","category-gpt","category-llms","category-openai","tag-chatgpt","tag-openai-api"],"views":1858,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3094","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=3094"}],"version-history":[{"count":18,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3094\/revisions"}],"predecessor-version":[{"id":3121,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3094\/revisions\/3121"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}