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

# Ask Sage

<Tip>
  **Discover Ask Sage models [here](https://hub.gourmand.dev/?q=Ask%20Sage)**
</Tip>

<Info>
  You can get an API key from the [Ask Sage](https://www.asksage.ai/).
</Info>

## Overview

Ask Sage provides secure, government-compliant access to LLMs. This guide explains how to set up and configure Ask Sage models, including support for DoD certificates.

## 1. Prerequisites

* **Ask Sage Account:**\
  Sign up or log in at [Ask Sage Platform](https://chat.asksage.ai/).

* **API Key:**\
  Follow the [API Key Documentation](https://docs.asksage.ai/docs/api-documentation/api-documentation.html) to generate your key.

## 2. Configuration

Add your Ask Sage model to your Gobi configuration file.

<Tabs>
  <Tab title="YAML">
    ```yaml title="config.yaml" theme={null}
    models:
      - name: GPT-4 gov
        provider: askSage
        model: gpt4-gov
        apiBase: https://api.asksage.ai/server/
        apiKey: <YOUR_ASK_SAGE_API_KEY>
    ```
  </Tab>

  <Tab title="JSON">
    ```json title="config.json" theme={null}
    {
      "models": [
        {
          "title": "GPT-4 gov",
          "provider": "askSage",
          "model": "gpt4-gov",
          "apiBase": "https://api.asksage.ai/server/",
          "apiKey": "<YOUR_ASK_SAGE_API_KEY>"
        }
      ]
    }
    ```
  </Tab>
</Tabs>

## 3. Using DoD Certificates

For secure environments, specify your DoD CA bundle path:

<Tabs>
  <Tab title="YAML">
    ```yaml title="config.yaml" theme={null}
    models:
      - name: GPT-4 gov
        provider: askSage
        model: gpt4-gov
        apiBase: https://api.asksage.ai/server/
        apiKey: <YOUR_ASK_SAGE_API_KEY>
        requestOptions:
          caBundlePath: /path/to/dod/certificates
    ```
  </Tab>

  <Tab title="JSON">
    ```json title="config.json" theme={null}
    {
      "models": [
        {
          "title": "GPT-4 gov",
          "provider": "askSage",
          "model": "gpt4-gov",
          "apiBase": "https://api.asksage.ai/server/",
          "apiKey": "<YOUR_ASK_SAGE_API_KEY>",
          "requestOptions": {
            "caBundlePath": "/path/to/dod/certificates"
          }
        }
      ]
    }
    ```
  </Tab>
</Tabs>

Replace `/path/to/dod/certificates` with your actual CA bundle file path.

***

## 4. Final Steps

* Save your configuration file.
* Restart Gobi to apply changes.

Your Ask Sage model will now be available in Gobi.

## 5. Usage

Supported features:

* **Chat:** Interact and iterate on code in the sidebar.
* **Edit:** Modify code in place.

## 6. Support

* Refer to [Ask Sage Docs](https://docs.asksage.ai/docs/api-documentation/api-documentation.html) for more details.
* Email the Ask Sage support team for assistance at [support@asksage.ai](mailto:support@asksage.ai).

***
