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

# Użyj gptme z CometAPI

> Skorzystaj z tego przewodnika, aby skonfigurować gptme z CometAPI, ustawiając bazowy URL, klucz API oraz opcje model lub provider.

[gptme](https://github.com/ErikBjare/gptme) to oparty na terminalu asystent AI. Skonfiguruj go do użycia z CometAPI, edytując plik `config.toml`.

## Wymagania wstępne

* Zainstalowany [gptme](https://github.com/ErikBjare/gptme)
* Konto [CometAPI](https://www.cometapi.com) z aktywnym kluczem API

## Konfiguracja

<Steps>
  <Step title="Pobierz swój klucz API CometAPI">
    Zaloguj się do [panelu CometAPI](https://www.cometapi.com/console). Kliknij **Add API Key** i skopiuj swój klucz oraz bazowy URL (`https://api.cometapi.com`).

    <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="Panel 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="Klucz API CometAPI i bazowy URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Edytuj config.toml">
    Otwórz `~/.config/gptme/config.toml` (utwórz go, jeśli nie istnieje). Ustaw `url` na `https://api.cometapi.com/v1` i wklej swój klucz CometAPI jako klucz API.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351553.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=07a12c20d1fe1aed2f3d1832a27e8f1d" alt="gptme config.toml — pola URL i klucza API" width="526" height="92" data-path="images/integrations/810968_351553.png" />
    </Frame>
  </Step>

  <Step title="Przetestuj połączenie">
    Uruchom `gptme` w terminalu i wyślij testowy Prompt. Pomyślna odpowiedź potwierdza, że integracja działa.
  </Step>
</Steps>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/gptme#howto",
        "name": "Użyj gptme z CometAPI",
        "description": "Skorzystaj z tego przewodnika, aby skonfigurować gptme z CometAPI, ustawiając bazowy URL, klucz API oraz opcje model lub provider.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/gptme#step-1",
            "position": 1,
            "name": "Pobierz swój klucz API CometAPI",
            "text": "Utwórz lub otwórz swoje konto CometAPI, a następnie skopiuj aktywny klucz API z panelu."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/gptme#step-2",
            "position": 2,
            "name": "Edytuj config.toml",
            "text": "Wykonaj krok Edytuj config.toml w przewodniku Użyj gptme z CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/gptme#step-3",
            "position": 3,
            "name": "Przetestuj połączenie",
            "text": "Wybierz aktualny model ID ze strony CometAPI Models, a następnie wyślij testowe żądanie z integracji."
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Dokumentacja CometAPI",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Integracje",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Użyj gptme z CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/gptme"
          }
        ]
      }
    ]
    }
    `}
</script>
