Skip to content

Commit 75a1fca

Browse files
authored
Merge pull request #110 from samchon/feat/llm-function-strict
Also erase `IHttpLlmFunction.strict` property.
2 parents f380312 + 7a85d6c commit 75a1fca

File tree

5 files changed

+1
-13
lines changed

5 files changed

+1
-13
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ const main = async (): Promise<void> => {
347347
name: func.name,
348348
description: func.description,
349349
parameters: func.parameters as Record<string, any>,
350-
strict: true,
351350
},
352351
},
353352
],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@samchon/openapi",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.",
55
"main": "./lib/index.js",
66
"module": "./lib/index.mjs",

src/composers/HttpLlmApplicationComposer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ export namespace HttpLlmComposer {
190190
method: props.route.method as "get",
191191
path: props.route.path,
192192
name: props.route.accessor.join("_"),
193-
strict: true,
194193
parameters,
195194
separated: props.options.separate
196195
? (LlmSchemaComposer.separateParameters(props.model)({

src/structures/IHttpLlmFunction.ts

-9
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,6 @@ export interface IHttpLlmFunction<Model extends ILlmSchema.Model> {
9999
*/
100100
name: string;
101101

102-
/**
103-
* Whether the function schema types are strict or not.
104-
*
105-
* Newly added specification to "OpenAI" at 2024-08-07.
106-
*
107-
* @reference https://openai.com/index/introducing-structured-outputs-in-the-api/
108-
*/
109-
strict: true;
110-
111102
/**
112103
* List of parameter types.
113104
*

test/examples/chatgpt-function-call-to-sale-create.ts

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const main = async (): Promise<void> => {
6464
name: func.name,
6565
description: func.description,
6666
parameters: func.parameters as Record<string, any>,
67-
strict: true,
6867
},
6968
},
7069
],

0 commit comments

Comments
 (0)