Configuration for the Gemini schema composition.

interface IConfig {
    reference: boolean;
}

Properties

Properties

reference: boolean

Whether to allow reference type in everywhere.

If you configure this property to false, most of reference types represented by IGeminiSchema.IReference would be escaped to a plain type unless recursive type case.

This is because the lower version of ChatGPT does not understand the reference type well, and even the modern version of ChatGPT sometimes occur the hallucination.

However, the reference type makes the schema size smaller, so that reduces the LLM token cost. Therefore, if you're using the modern version of ChatGPT, and want to reduce the LLM token cost, you can configure this property to true.

true