@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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8083,7 +8083,7 @@ function buildJsonSchemaConfig(request) {
|
|
|
8083
8083
|
name: schemaName,
|
|
8084
8084
|
target: isOpenAiVariant ? "openAi" : "jsonSchema7"
|
|
8085
8085
|
});
|
|
8086
|
-
const responseJsonSchema = isOpenAiVariant ? resolveOpenAiSchemaRoot(baseJsonSchema) : isGeminiVariant ? addGeminiPropertyOrdering(baseJsonSchema) : resolveOpenAiSchemaRoot(baseJsonSchema);
|
|
8086
|
+
const responseJsonSchema = isOpenAiVariant ? resolveOpenAiSchemaRoot(baseJsonSchema) : isGeminiVariant ? addGeminiPropertyOrdering(resolveOpenAiSchemaRoot(baseJsonSchema)) : resolveOpenAiSchemaRoot(baseJsonSchema);
|
|
8087
8087
|
if (isOpenAiVariant && !isJsonSchemaObject(responseJsonSchema)) {
|
|
8088
8088
|
throw new Error("OpenAI structured outputs require a JSON object schema at the root.");
|
|
8089
8089
|
}
|