Skip to content

Commit

Permalink
Merge pull request #110 from samchon/feat/llm-function-strict
Browse files Browse the repository at this point in the history
Also erase `IHttpLlmFunction.strict` property.
  • Loading branch information
samchon authored Dec 12, 2024
2 parents f380312 + 7a85d6c commit 75a1fca
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ const main = async (): Promise<void> => {
name: func.name,
description: func.description,
parameters: func.parameters as Record<string, any>,
strict: true,
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samchon/openapi",
"version": "2.1.0",
"version": "2.1.1",
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
Expand Down
1 change: 0 additions & 1 deletion src/composers/HttpLlmApplicationComposer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ export namespace HttpLlmComposer {
method: props.route.method as "get",
path: props.route.path,
name: props.route.accessor.join("_"),
strict: true,
parameters,
separated: props.options.separate
? (LlmSchemaComposer.separateParameters(props.model)({
Expand Down
9 changes: 0 additions & 9 deletions src/structures/IHttpLlmFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,6 @@ export interface IHttpLlmFunction<Model extends ILlmSchema.Model> {
*/
name: string;

/**
* Whether the function schema types are strict or not.
*
* Newly added specification to "OpenAI" at 2024-08-07.
*
* @reference https://openai.com/index/introducing-structured-outputs-in-the-api/
*/
strict: true;

/**
* List of parameter types.
*
Expand Down
1 change: 0 additions & 1 deletion test/examples/chatgpt-function-call-to-sale-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const main = async (): Promise<void> => {
name: func.name,
description: func.description,
parameters: func.parameters as Record<string, any>,
strict: true,
},
},
],
Expand Down

0 comments on commit 75a1fca

Please sign in to comment.