From cbd0c3e06d8a8fe970ae4f2663fba0cee833bbbc Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Mon, 2 Dec 2024 21:43:15 +0900 Subject: [PATCH] Revive `IHttpOpenAiApplication.openapi` field. --- package.json | 2 +- src/HttpOpenAi.ts | 1 + src/IHttpOpenAiApplication.ts | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 88533fa..234b763 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wrtnio/schema", - "version": "2.0.0", + "version": "2.0.1", "description": "JSON and LLM function calling schemas extended for Wrtn Studio Pro", "main": "lib/index.js", "module": "./lib/index.mjs", diff --git a/src/HttpOpenAi.ts b/src/HttpOpenAi.ts index dd70154..41244dd 100644 --- a/src/HttpOpenAi.ts +++ b/src/HttpOpenAi.ts @@ -32,6 +32,7 @@ export namespace HttpOpenAi { return { ...app, functions: app.functions.map(functional), + openapi: "3.0.3", }; }; diff --git a/src/IHttpOpenAiApplication.ts b/src/IHttpOpenAiApplication.ts index 56312fb..b11da14 100644 --- a/src/IHttpOpenAiApplication.ts +++ b/src/IHttpOpenAiApplication.ts @@ -79,6 +79,13 @@ export interface IHttpOpenAiApplication * you can do it through {@link HttpOpenAi.execute} function. */ functions: IHttpOpenAiFunction[]; + + /** + * Version of OpenAPI. + * + * OpenAI function call schemas are based on OpenAPI 3.0.3. + */ + openapi: "3.0.3"; } export namespace IHttpOpenAiApplication { /**