id: 0f23e3880ec24eb9bd2548707256fc13
parent_id: 
item_type: 1
item_id: 3072a2ef7b4247f6bf800548282cab57
item_updated_time: 1764345621817
title_diff: "[{\"diffs\":[[1,\"一劳永逸！让所有OpenAI工具都能用上Gemini并免魔法\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":30}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>一劳永逸！让所有OpenAI工具都能用上Gemini并免魔法</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"37869\\\"></a>\\\r\\\n<h1>一劳永逸！让所有OpenAI工具都能用上Gemini并免魔法</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"\\\"><div style=\\\"max-width: 700px;\\\"><p></p><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial;\\\"><div>原文链接: <a href=\\\"http://mp.weixin.qq.com/s?__biz=MzA5MDgyNjgxOA==&amp;mid=2447806929&amp;idx=1&amp;sn=1add65a66c6757ce97a9a48eed35768d&amp;chksm=85abebad45cbde7d75a153ce783e56876673c98f33ea41051626d7599df12c467c419ab9d04d&amp;mpshare=1&amp;scene=1&amp;srcid=0214pCQttU2W5dp1WUxjvhfh&amp;sharer_shareinfo=6502911665f89453ab300ba5f1a28eeb&amp;sharer_shareinfo_first=6502911665f89453ab300ba5f1a28eeb#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=MzA5MDgyNjgxOA==&amp;mid=2447806...</span></a></div></div><p></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">原创</span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">pyvideotrans</span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><a style=\\\"-webkit-tap-highlight-color: transparent;\\\"> pyVideoTrans </a></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><em style=\\\"-webkit-tap-highlight-color: transparent;\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><div style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; color: rgb(60,60,67); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0; text-transform: none; widows: 2; word-spacing: 0; -webkit-text-stroke-width: 0; white-space: normal; background-color: rgb(255,255,255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">GeminiAI 是一款对开发者非常友好的大模型，它不仅界面美观、功能强大，还提供每日相当高的免费额度，足以满足日常使用需求。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">然而，它也存在一些不便之处，例如必须始终科学上网，且 API 与 OpenAI SDK 不兼容。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">为了解决这些问题，并实现与 OpenAI 的兼容，编写了一段 JavaScript 代码，并将其部署到 Cloudflare 上，绑定自己的域名。这样一来，就可以在国内免科学上网使用 Gemini，同时也能兼容 OpenAI。在任何使用 OpenAI 的工具中，只需简单地替换 API 地址和密钥（SK）即可。</span></p><h2 style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 24px; font-weight: 700; overflow-wrap: break-word; outline: none; border-top: 1px solid var(--vp-c-divider); letter-spacing: -0.02em; display: inline-block; background: rgb(239,112,96); color: rgb(255,255,255); border-top-right-radius: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">  在 Cloudflare 上创建 Worker</span></h2><div style=\\\"--en-blockquote: true; -webkit-tap-highlight-color: transparent; box-sizing: border-box; border-left: 3px solid rgb(239,112,96); transition: border-color 0.5s; color: var(--vp-c-text-2); margin-inline: 0; background: rgb(255,249,249);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word; transition: color 0.5s;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">如果你还没有 Cloudflare 账号，请先注册一个（免费）。注册地址是：</span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">https://dash.cloudflare.com  </span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 登录后，记得绑定你自己的域名，否则无法实现免代理访问。</span></p></div><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">登录后，在左侧边栏找到 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">Compute (Workers)</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 并点击，然后单击 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">创建</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 按钮。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/e75c908876374de792e2a0c5df5c5e99\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/b1849b3b4b884628847507f8b23c32fa\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">在出现的页面中点击 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">创建 Worker</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/eb9cc438a30b450db53c37b4058196b0\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">接着点击右下角的 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">部署</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">，这样就完成了 Worker 的创建。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/2faeec67bee04708a18ef7f59270371a\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><h2 style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 24px; font-weight: 700; overflow-wrap: break-word; outline: none; border-top: 1px solid var(--vp-c-divider); letter-spacing: -0.02em; display: inline-block; background: rgb(239,112,96); color: rgb(255,255,255); border-top-right-radius: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">  编辑代码</span></h2><div style=\\\"--en-blockquote: true; -webkit-tap-highlight-color: transparent; box-sizing: border-box; border-left: 3px solid rgb(239,112,96); transition: border-color 0.5s; color: var(--vp-c-text-2); margin-inline: 0; background: rgb(255,249,249);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word; transition: color 0.5s;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">下面的代码是实现兼容 OpenAI 的关键，请复制它并替换 Worker 中默认生成的代码。</span></p></div><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">在刚才部署完成后的页面中，点击 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">编辑代码</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/d19ecb0f49bd404491672a952c54ed3c\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">删除左侧的所有代码，然后复制下面的代码并粘贴，最后点击右上角的 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">部署</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/99d7b6b1646c4339973fc748a6d90b15\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">复制以下代码</span></strong></p><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"></p><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p><h2 style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 24px; font-weight: 700; overflow-wrap: break-word; outline: none; border-top: 1px solid var(--vp-c-divider); letter-spacing: -0.02em; display: inline-block; background: rgb(239,112,96); color: rgb(255,255,255); border-top-right-radius: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">  绑定域名</span></h2><div style=\\\"--en-blockquote: true; -webkit-tap-highlight-color: transparent; box-sizing: border-box; border-left: 3px solid rgb(239,112,96); transition: border-color 0.5s; color: var(--vp-c-text-2); margin-inline: 0; background: rgb(255,249,249);\\\"><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word; transition: color 0.5s;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">部署完成后，会有一个 Cloudflare 提供的二级子域名，但该域名在国内无法正常访问，因此需要绑定你自己的域名才能实现免代理访问。</span></p></div><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">部署完成后，点击左侧的 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">返回</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/b4e08a79c560432fada4f1fd95123f1f\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">然后找到 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">设置</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"> -- </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">域和路由</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">，点击 </span><strong style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-weight: 600;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">添加</span></strong><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/7deb1ea29915400f97f9e1453a13bf95\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/8827e6c60df940639bb3377f79dac48b\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">如下图所示，添加你已经托管在 Cloudflare 的域名。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/aa1053bc95b2446ca55eb8dad164a661\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">完成后，即可使用该域名访问 Gemini。</span></p><h2 style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 24px; font-weight: 700; overflow-wrap: break-word; outline: none; border-top: 1px solid var(--vp-c-divider); letter-spacing: -0.02em; display: inline-block; background: rgb(239,112,96); color: rgb(255,255,255); border-top-right-radius: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">  使用 OpenAI SDK 访问 Gemini</span></h2><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"></p><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">返回如下：</span></p><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></p><h2 style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 24px; font-weight: 700; overflow-wrap: break-word; outline: none; border-top: 1px solid var(--vp-c-divider); letter-spacing: -0.02em; display: inline-block; background: rgb(239,112,96); color: rgb(255,255,255); border-top-right-radius: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">  在其他兼容 OpenAI 的工具中使用</span></h2><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">找到该工具配置 OpenAI 信息的位置，将 API 地址改为你在 Cloudflare 中添加的自定义域名，将 SK 改为你的 Gemini API Key，模型填写 </span><code style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; word-break: break-word; border-radius: 4px; overflow-x: auto; background-color: var(--vp-code-bg); color: var(--vp-code-color); transition: color 0.25s,background-color 0.5s;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">gemini-2.0-flash-exp</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/6898714b771649bea166438a4d4e5738\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/d872676f05be40a6bb7f3ff69221aa47\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><h2 style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-size: 24px; font-weight: 700; overflow-wrap: break-word; outline: none; border-top: 1px solid var(--vp-c-divider); letter-spacing: -0.02em; display: inline-block; background: rgb(239,112,96); color: rgb(255,255,255); border-top-right-radius: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">  直接使用 requests 访问</span></h2><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">如果你不使用 OpenAI SDK，也可以直接使用 </span><code style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; word-break: break-word; border-radius: 4px; overflow-x: auto; background-color: var(--vp-code-bg); color: var(--vp-code-color); transition: color 0.25s,background-color 0.5s;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">requests</span></code><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"> 库进行访问。</span></p><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"></p><p style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\">输出如下：</span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><img src=\\\":/ee22f8281f0845558f1b24b538378748\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; -webkit-tap-highlight-color: transparent; box-sizing: border-box; display: block; max-width: 100%; height: auto; width: auto;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color: transparent; box-sizing: border-box; overflow-wrap: break-word;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(136,136,136); font-weight: bold;\\\">源码修改自开源项目 </span></span><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent; color: rgb(136,136,136); font-weight: bold;\\\">PublicAffairs/openai-gemini</span></span></p><div style=\\\"-webkit-tap-highlight-color: transparent;\\\"><span style=\\\"-webkit-tap-highlight-color: transparent;\\\"><br style=\\\"-webkit-tap-highlight-color: transparent;\\\"/></span></div></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":21378}]"
metadata_diff: {"new":{"id":"3072a2ef7b4247f6bf800548282cab57","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348830213,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:04.872Z
created_time: 2025-11-28T21:04:04.872Z
type_: 13