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

# GitHub

Obiguard provides a robust and secure gateway to facilitate the integration of various Large Language Models (LLMs) into your applications, including the models hosted on [GitHub Models Marketplace](https://github.com/marketplace/models).

<Note>
  Provider Slug: `github`
</Note>

## Obiguard SDK Integration with GitHub Models

Obiguard provides a consistent API to interact with models from various providers. To integrate GitHub Models with Obiguard:

### 1. Install the Obiguard SDK

<Tabs>
  <Tab title="Python SDK">
    ```sh theme={null}
    pip install -U obiguard
    ```
  </Tab>
</Tabs>

### 2. Initialize Obiguard with GitHub Models

To use GitHub with Obiguard, get your API key [from here](https://github.com/settings/tokens), then add it to Obiguard to create the virtual key.

<Tabs>
  <Tab title="Python SDK">
    ```py theme={null}
    from obiguard import Obiguard

    client = Obiguard(
      obiguard_api_key="vk-obg***",  # Your Obiguard virtual key
      virtual_key="GITHUB_VIRTUAL_KEY" # Your GitHub Models virtual key
    )
    ```
  </Tab>
</Tabs>

### 3. Invoke Chat Completions

<Tabs>
  <Tab title="Python SDK">
    ```python theme={null}
    completion = client.chat.completions.create(
      messages= [{"role": 'user', "content": 'Say this is a test'}],
      model= 'Phi-3-small-128k-instruct'
    )
    ```
  </Tab>
</Tabs>

## Supported Models

Obiguard supports *all* the models (both `Chat/completion` and `Embeddings` capabilities) on the GitHub Models marketplace.

## Next Steps

The complete list of features supported in the SDK are available on the link below.

<Card title="Obiguard SDK Client" icon="code" href="/api-reference/sdk/python">
  Learn more about the Obiguard SDK Client
</Card>
