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

# Strict OpenAI Compliance

By default, all the responses sent back from Prisma AIRS AI Gateway are compliant with the [OpenAI specification](https://platform.openai.com/docs/api-reference/chat/create).

In some cases, a response from a provider like Perplexity may contain useful fields which do not have a corresponding 1:1 mapping to OpenAI fields.
To get those fields in the response, you can do one of the following:

* HTTP requests: Pass this header `x-portkey-strict-open-ai-compliance: false` with your request

<Note>
  By default strict\_open\_ai\_compliance=false in AI Gateway Python and Node SDK
</Note>

<Tabs>
  <Tab title="cURL">
    Add the following header to your request
    `x-portkey-strict-open-ai-compliance: false`
  </Tab>

  <Tab title="OpenAI python">
    ```python theme={"system"}
    from openai import OpenAI

    openai = OpenAI(
        api_key="PORTKEY_API_KEY",
        base_url="https://aigw.portkey.ai/v1",
        default_headers={"x-portkey-provider": "openai"}
    )
    ```
  </Tab>

  <Tab title="OpenAI Node SDK">
    ```js theme={"system"}
    import OpenAI from 'openai'; // We're using the v4 SDK

    const openai = new OpenAI({
      apiKey: "PORTKEY_API_KEY", // defaults to process.env["OPENAI_API_KEY"],
      baseURL: "https://aigw.portkey.ai/v1",
      defaultHeaders: {
          "x-portkey-provider": "openai",
          // defaults to process.env["PORTKEY_API_KEY"]
          "x-portkey-strict-open-ai-compliance": false,
      }
    });
    ```
  </Tab>
</Tabs>


## Related topics

- [Google Gemini](/docs/aigw/integrations/llms/gemini.md)
- [Perplexity AI](/docs/aigw/integrations/llms/perplexity-ai.md)
- [Enterprise Gateway](/docs/aigw/changelog/enterprise.md)
- [Thinking Mode](/docs/aigw/product/ai-gateway/multimodal-capabilities/thinking-mode.md)
- [Google Vertex AI](/docs/aigw/integrations/llms/vertex-ai.md)
