Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@samchon/openapi

Package Overview
Dependencies
Maintainers
0
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@samchon/openapi - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

2

lib/composers/HttpLlmApplicationComposer.js

@@ -189,3 +189,3 @@ "use strict";

};
if (Object.keys($defs).length)
if (LlmSchemaComposer_1.LlmSchemaComposer.isDefs(props.model))
parameters.$defs = $defs;

@@ -192,0 +192,0 @@ var operation = props.route.operation();

@@ -48,2 +48,6 @@ "use strict";

(function (ChatGptSchemaComposer) {
/**
* @internal
*/
ChatGptSchemaComposer.IS_DEFS = true;
ChatGptSchemaComposer.parameters = function (props) {

@@ -50,0 +54,0 @@ var e_1, _a;

@@ -18,2 +18,6 @@ "use strict";

(function (ClaudeSchemaComposer) {
/**
* @internal
*/
ClaudeSchemaComposer.IS_DEFS = true;
ClaudeSchemaComposer.parameters = function (props) {

@@ -20,0 +24,0 @@ return LlmSchemaV3_1Composer_1.LlmSchemaV3_1Composer.parameters(__assign(__assign({}, props), { config: {

@@ -32,2 +32,6 @@ "use strict";

(function (GeminiSchemaComposer) {
/**
* @internal
*/
GeminiSchemaComposer.IS_DEFS = false;
GeminiSchemaComposer.parameters = function (props) {

@@ -34,0 +38,0 @@ var entity = LlmParametersComposer_1.LlmParametersFinder.parameters(__assign(__assign({}, props), { method: "GeminiSchemaComposer.parameters" }));

@@ -18,2 +18,6 @@ "use strict";

(function (LlamaSchemaComposer) {
/**
* @internal
*/
LlamaSchemaComposer.IS_DEFS = true;
LlamaSchemaComposer.parameters = function (props) {

@@ -20,0 +24,0 @@ return LlmSchemaV3_1Composer_1.LlmSchemaV3_1Composer.parameters(__assign(__assign({}, props), { config: {

@@ -58,2 +58,6 @@ "use strict";

(function (LlmSchemaV3_1Composer) {
/**
* @internal
*/
LlmSchemaV3_1Composer.IS_DEFS = true;
LlmSchemaV3_1Composer.parameters = function (props) {

@@ -60,0 +64,0 @@ var entity = LlmParametersComposer_1.LlmParametersFinder.parameters(__assign(__assign({}, props), { method: "LlmSchemaV3_1Composer.parameters" }));

@@ -58,2 +58,6 @@ "use strict";

(function (LlmSchemaV3Composer) {
/**
* @internal
*/
LlmSchemaV3Composer.IS_DEFS = false;
LlmSchemaV3Composer.parameters = function (props) {

@@ -60,0 +64,0 @@ var entity = LlmParametersComposer_1.LlmParametersFinder.parameters(__assign(__assign({}, props), { method: "LlmSchemaV3Composer.parameters" }));

@@ -31,2 +31,6 @@ "use strict";

LlmSchemaComposer.separateParameters = function (model) { return SEPARATE_PARAMETERS[model]; };
/**
* @internal
*/
LlmSchemaComposer.isDefs = function (model) { return IS_DEFS[model](); };
})(LlmSchemaComposer || (exports.LlmSchemaComposer = LlmSchemaComposer = {}));

@@ -88,1 +92,12 @@ var PARAMETERS_CASTERS = {

};
/**
* @internal
*/
var IS_DEFS = {
chatgpt: function () { return ChatGptSchemaComposer_1.ChatGptSchemaComposer.IS_DEFS; },
claude: function () { return ClaudeSchemaComposer_1.ClaudeSchemaComposer.IS_DEFS; },
gemini: function () { return GeminiSchemaComposer_1.GeminiSchemaComposer.IS_DEFS; },
llama: function () { return LlamaSchemaComposer_1.LlamaSchemaComposer.IS_DEFS; },
"3.0": function () { return LlmSchemaV3Composer_1.LlmSchemaV3Composer.IS_DEFS; },
"3.1": function () { return LlmSchemaV3_1Composer_1.LlmSchemaV3_1Composer.IS_DEFS; },
};
{
"name": "@samchon/openapi",
"version": "2.3.1",
"version": "2.3.2",
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -199,3 +199,3 @@ import { OpenApi } from "../OpenApi";

} as any as ILlmSchema.ModelParameters[Model];
if (Object.keys($defs).length)
if (LlmSchemaComposer.isDefs(props.model))
(parameters as any as IChatGptSchema.IParameters).$defs = $defs;

@@ -202,0 +202,0 @@ const operation: OpenApi.IOperation = props.route.operation();

@@ -13,2 +13,7 @@ import { OpenApi } from "../../OpenApi";

export namespace ChatGptSchemaComposer {
/**
* @internal
*/
export const IS_DEFS = true;
export const parameters = (props: {

@@ -15,0 +20,0 @@ config: IChatGptSchema.IConfig;

@@ -9,2 +9,7 @@ import { OpenApi } from "../../OpenApi";

export namespace ClaudeSchemaComposer {
/**
* @internal
*/
export const IS_DEFS = true;
export const parameters = (props: {

@@ -11,0 +16,0 @@ config: IClaudeSchema.IConfig;

@@ -15,2 +15,7 @@ import { OpenApi } from "../../OpenApi";

export namespace GeminiSchemaComposer {
/**
* @internal
*/
export const IS_DEFS = false;
export const parameters = (props: {

@@ -17,0 +22,0 @@ config: IGeminiSchema.IConfig;

@@ -9,2 +9,7 @@ import { OpenApi } from "../../OpenApi";

export namespace LlamaSchemaComposer {
/**
* @internal
*/
export const IS_DEFS = true;
export const parameters = (props: {

@@ -11,0 +16,0 @@ config: ILlamaSchema.IConfig;

@@ -13,2 +13,7 @@ import { OpenApi } from "../../OpenApi";

export namespace LlmSchemaV3_1Composer {
/**
* @internal
*/
export const IS_DEFS = true;
export const parameters = (props: {

@@ -15,0 +20,0 @@ config: ILlmSchemaV3_1.IConfig;

@@ -13,2 +13,7 @@ import { OpenApi } from "../../OpenApi";

export namespace LlmSchemaV3Composer {
/**
* @internal
*/
export const IS_DEFS = false;
export const parameters = (props: {

@@ -15,0 +20,0 @@ config: ILlmSchemaV3.IConfig;

@@ -37,2 +37,9 @@ import { IChatGptSchema } from "../structures/IChatGptSchema";

) => SEPARATE_PARAMETERS[model];
/**
* @internal
*/
export const isDefs = <Model extends ILlmSchema.Model>(
model: Model,
): boolean => IS_DEFS[model]();
}

@@ -99,1 +106,13 @@

};
/**
* @internal
*/
const IS_DEFS = {
chatgpt: () => ChatGptSchemaComposer.IS_DEFS,
claude: () => ClaudeSchemaComposer.IS_DEFS,
gemini: () => GeminiSchemaComposer.IS_DEFS,
llama: () => LlamaSchemaComposer.IS_DEFS,
"3.0": () => LlmSchemaV3Composer.IS_DEFS,
"3.1": () => LlmSchemaV3_1Composer.IS_DEFS,
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc