> ## 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.

# Sử dụng Continue với CometAPI

> Sử dụng hướng dẫn này để cấu hình Continue với CometAPI bằng cách thiết lập base URL, API key và các tùy chọn model hoặc provider.

[Continue](https://continue.dev) là một tiện ích mở rộng VS Code mã nguồn mở dùng để hỗ trợ lập trình bằng AI. Nó có provider CometAPI chính thức — không cần cấu hình URL thủ công.

## Điều kiện tiên quyết

* Đã cài đặt [Continue](https://marketplace.visualstudio.com/items?itemName=Continue.continue) trong VS Code
* Một tài khoản [CometAPI](https://www.cometapi.com) với API key đang hoạt động

## Thiết lập

<Steps>
  <Step title="Cài đặt Continue trong VS Code">
    Tìm **Continue** trong bảng Extensions của VS Code và cài đặt nó.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_362621.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=6e94ab329f18d8e02387dc6fe8c798e3" alt="Bảng Extensions của VS Code hiển thị extension Continue" width="1194" height="800" data-path="images/integrations/810968_362621.png" />
    </Frame>
  </Step>

  <Step title="Lấy API key CometAPI của bạn">
    Đăng nhập vào [bảng điều khiển CometAPI](https://www.cometapi.com/console). Nhấp vào **Add API Key** và sao chép key của bạn.

    <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="Bảng điều khiển CometAPI — Add API Key" 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="API key và base URL của CometAPI" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Thêm CometAPI làm provider">
    Mở **Settings** của Continue → **Models** → **+**. Tìm `cometapi` trong danh sách provider và chọn nó. Dán API key của bạn và chọn các model bạn muốn sử dụng.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_362622.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=7d9ad8d97240036f8eabad68ac872f7e" alt="Cài đặt Continue — tìm kiếm provider với cometapi được chọn" width="1736" height="965" data-path="images/integrations/810968_362622.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_362623.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=53d3b5b690328196cbc0c7aeeb39ad9b" alt="Cấu hình provider CometAPI trong Continue" width="1915" height="944" data-path="images/integrations/810968_362623.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_362624.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=e9fee9dd542d42a4415f0a41827124e5" alt="Chọn model trong Continue với provider CometAPI" width="526" height="486" data-path="images/integrations/810968_362624.png" />
    </Frame>
  </Step>

  <Step title="Kiểm tra kết nối">
    Mở một tệp và gửi prompt kiểm tra qua Continue. Phản hồi thành công xác nhận rằng tích hợp đang hoạt động.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_362626.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=765ce3c34f80b122bab7b763d970bd4f" alt="Cuộc trò chuyện Continue hiển thị phản hồi thành công từ CometAPI" width="629" height="998" data-path="images/integrations/810968_362626.png" />
    </Frame>
  </Step>
</Steps>

<Note>
  Nếu CometAPI không xuất hiện trong danh sách provider, hãy chuyển Continue sang phiên bản **Preview** và mở lại extension.

  <Frame>
    <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_362627.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=54d4157b18c9134ec966daf66ec36e45" alt="Bảng extension Continue hiển thị nút chuyển phiên bản Preview" width="649" height="239" data-path="images/integrations/810968_362627.png" />
  </Frame>
</Note>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/continue#howto",
        "name": "Sử dụng Continue với CometAPI",
        "description": "Sử dụng hướng dẫn này để cấu hình Continue với CometAPI bằng cách thiết lập base URL, API key và các tùy chọn model hoặc provider.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/continue#step-1",
            "position": 1,
            "name": "Cài đặt Continue trong VS Code",
            "text": "Hoàn thành bước Cài đặt Continue trong VS Code trong hướng dẫn Sử dụng Continue với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/continue#step-2",
            "position": 2,
            "name": "Lấy API key CometAPI của bạn",
            "text": "Tạo hoặc mở tài khoản CometAPI của bạn, sau đó sao chép một API key đang hoạt động từ bảng điều khiển."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/continue#step-3",
            "position": 3,
            "name": "Thêm CometAPI làm provider",
            "text": "Hoàn thành bước Thêm CometAPI làm provider trong hướng dẫn Sử dụng Continue với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/continue#step-4",
            "position": 4,
            "name": "Kiểm tra kết nối",
            "text": "Chọn một model ID hiện tại từ trang CometAPI Models, sau đó gửi một yêu cầu kiểm tra từ tích hợp."
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Tài liệu CometAPI",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Tích hợp",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Sử dụng Continue với CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/continue"
          }
        ]
      }
    ]
    }
    `}
</script>
