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.

Provider Slug: github

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

pip install -U obiguard

2. Initialize Obiguard with GitHub Models

To use GitHub with Obiguard, get your API key from here, then add it to Obiguard to create the virtual key.

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
)

3. Invoke Chat Completions

completion = client.chat.completions.create(
  messages= [{"role": 'user', "content": 'Say this is a test'}],
  model= 'Phi-3-small-128k-instruct'
)

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.

Obiguard SDK Client

Learn more about the Obiguard SDK Client