Skip to content

Commit

Permalink
Merge pull request #10 from wrtnio/feat/next
Browse files Browse the repository at this point in the history
Revive `IHttpOpenAiApplication.openapi` field.
  • Loading branch information
samchon authored Dec 2, 2024
2 parents be55a34 + cbd0c3e commit b807cdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/HttpOpenAi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export namespace HttpOpenAi {
return {
...app,
functions: app.functions.map(functional),
openapi: "3.0.3",
};
};

Expand Down
7 changes: 7 additions & 0 deletions src/IHttpOpenAiApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down

0 comments on commit b807cdb

Please sign in to comment.