@ljoukov/llm 7.0.5 → 7.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -8196,7 +8196,7 @@ function buildJsonSchemaConfig(request) {
8196
8196
  name: schemaName,
8197
8197
  target: isOpenAiVariant ? "openAi" : "jsonSchema7"
8198
8198
  });
8199
- const responseJsonSchema = isOpenAiVariant ? resolveOpenAiSchemaRoot(baseJsonSchema) : isGeminiVariant ? addGeminiPropertyOrdering(baseJsonSchema) : resolveOpenAiSchemaRoot(baseJsonSchema);
8199
+ const responseJsonSchema = isOpenAiVariant ? resolveOpenAiSchemaRoot(baseJsonSchema) : isGeminiVariant ? addGeminiPropertyOrdering(resolveOpenAiSchemaRoot(baseJsonSchema)) : resolveOpenAiSchemaRoot(baseJsonSchema);
8200
8200
  if (isOpenAiVariant && !isJsonSchemaObject(responseJsonSchema)) {
8201
8201
  throw new Error("OpenAI structured outputs require a JSON object schema at the root.");
8202
8202
  }