Skip to content

Commit

Permalink
Prepare the next version
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Dec 1, 2024
1 parent c8c1928 commit 95bfe92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/wrtnio/schema#readme",
"dependencies": {
"@samchon/openapi": "^2.0.0-dev.20241128"
"@samchon/openapi": "^2.0.0-dev.20241202-2"
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
Expand All @@ -41,7 +41,7 @@
"ts-patch": "^3.2.1",
"typescript": "5.5.4",
"typescript-transform-paths": "^3.5.1",
"typia": "^7.0.0-dev.20241127-2"
"typia": "^7.0.0-dev.20241202"
},
"files": [
"lib",
Expand Down
10 changes: 6 additions & 4 deletions src/HttpOpenAi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
IHttpLlmFunction,
IHttpResponse,
} from "@samchon/openapi";
import { LlmSchemaConverter } from "@samchon/openapi/lib/converters/LlmSchemaConverter";
import { LlmSchemaComposer } from "@samchon/openapi/lib/composers/LlmSchemaComposer";

import { IHttpOpenAiApplication } from "./IHttpOpenAiApplication";
import { IHttpOpenAiFunction } from "./IHttpOpenAiFunction";
Expand Down Expand Up @@ -38,12 +38,14 @@ export namespace HttpOpenAi {
export const schema = (props: {
components: ISwaggerComponents;
schema: ISwaggerSchema;
}): IOpenAiSchema | null =>
LlmSchemaConverter.schema("3.0")({
config: LlmSchemaConverter.defaultConfig("3.0"),
}): IOpenAiSchema | null => {
const result = LlmSchemaComposer.schema("3.0")({
config: LlmSchemaComposer.defaultConfig("3.0"),
components: props.components,
schema: props.schema,
});
return result.success ? result.value : null;
};

const functional = (
keyword: IHttpLlmFunction<"3.0">,
Expand Down
2 changes: 1 addition & 1 deletion src/IHttpOpenAiFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export namespace IHttpOpenAiFunction {
/**
* The keyworded parameters' separation.
*/
keyword?: IHttpLlmFunction.ISeparated<IOpenAiSchema.IParameters>;
keyword?: IHttpLlmFunction.ISeparated<"3.0">;
}

/**
Expand Down

0 comments on commit 95bfe92

Please sign in to comment.