> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 使用 uTools ChatGPT Friend 搭配 CometAPI

> 使用本指南，透過設定 base URL、API key，以及 model 或 provider 選項，將 uTools ChatGPT Friend 設定為使用 CometAPI。

uTools ChatGPT Friend 是一個 uTools 外掛，可將 AI 對話帶到你的桌面快速啟動列。將它連接到 CometAPI，然後從[模型頁面](/zh-Hant/overview/models)選擇你想使用的 model。

## 先決條件

* 擁有一個啟用中 API key 的 CometAPI 帳戶 — [在此取得](https://www.cometapi.com/console/token)
* 已安裝 uTools — [在此下載](https://u.tools/)
* ChatGPT Friend 外掛 — [在此取得](https://www.u-tools.cn/plugins/detail/ChatGPT.%E5%A5%BD%E5%8F%8B/index.html)

<Steps>
  <Step title="取得你的 CometAPI API key">
    登入 [CometAPI 控制台](https://www.cometapi.com/console/token)。點擊 **Add API Key** 並複製你的 CometAPI API key。

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/overview/810968_364191.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=aef81a83f29f8eb16655ed4060425f50" alt="顯示 Add API Key 按鈕的 CometAPI 儀表板" width="3824" height="1892" data-path="images/overview/810968_364191.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/HhtmQffktazbxUvS/images/overview/810968_364193.png?fit=max&auto=format&n=HhtmQffktazbxUvS&q=85&s=d893f659267150d0faf45f99eb5dffc1" alt="包含 base URL 的 CometAPI API key 詳細資料" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="設定 ChatGPT Friend">
    在 uTools 中開啟 ChatGPT Friend 外掛。在設定中：

    * **Interface Address**：`https://api.cometapi.com`
    * **API Key**：貼上你的 CometAPI API key

    點擊 **Save**。

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351617.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=007fd1da30f9ca6c807caf2d01205422" alt="已填入介面位址與 API key 的 ChatGPT Friend 設定" width="1024" height="760" data-path="images/integrations/810968_351617.png" />
    </Frame>
  </Step>

  <Step title="測試連線">
    在聊天輸入框中輸入訊息並送出。成功收到回覆即表示整合已正常運作。

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351618.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=2f2aecbecc80d2f3042f84d8e9d13d48" alt="顯示 AI 成功回應的 ChatGPT Friend" width="1024" height="905" data-path="images/integrations/810968_351618.png" />
    </Frame>

    如果呼叫失敗，請確認你的 API key 與介面位址是否正確，或聯絡 [CometAPI 支援](https://www.cometapi.com)。
  </Step>
</Steps>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend#howto",
        "name": "使用 CometAPI 搭配 uTools ChatGPT Friend",
        "description": "使用本指南，透過設定 base URL、API key，以及 model 或 provider 選項，來設定 uTools ChatGPT Friend 與 CometAPI。",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend#step-1",
            "position": 1,
            "name": "取得你的 CometAPI API key",
            "text": "建立或開啟你的 CometAPI 帳戶，然後從儀表板複製一個啟用中的 API key。"
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend#step-2",
            "position": 2,
            "name": "設定 ChatGPT Friend",
            "text": "完成「使用 CometAPI 搭配 uTools ChatGPT Friend」指南中的「設定 ChatGPT Friend」步驟。"
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend#step-3",
            "position": 3,
            "name": "測試連線",
            "text": "從 CometAPI Models 頁面選擇目前可用的 model ID，然後從整合中送出測試請求。"
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "CometAPI 文件",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "整合",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "使用 CometAPI 搭配 uTools ChatGPT Friend",
            "item": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend"
          }
        ]
      }
    ]
    }
    `}
</script>
