Skip to main content
In certain scenarios, responses from providers like Perplexity may include additional fields that do not directly correspond to OpenAI fields. To retrieve these fields, use one of the following methods:
  • Python SDK: Set the parameter strict_open_ai_compliance=false when initializing the Gegentica client.
  • Node SDK: Set the parameter strictOpenAiCompliance: false when initializing the Gegentica client.
  • HTTP Requests: Include the header x-gegentic-strict-open-ai-compliance: false in your request.
By default, Gegentica Python and Node SDKs have strict_open_ai_compliance set to false.

Examples