Skip to content

Commit

Permalink
Merge pull request #109 from samchon/feat/llm-function-strict
Browse files Browse the repository at this point in the history
Remove `ILlmFunction.strict` property.
  • Loading branch information
samchon authored Dec 12, 2024
2 parents a71e7d3 + 87a294d commit f380312
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
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.0.4",
"version": "2.1.0",
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
Expand Down
9 changes: 0 additions & 9 deletions src/structures/ILlmFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ export interface ILlmFunction<Model extends ILlmSchema.Model> {
*/
output?: ILlmSchema.ModelSchema[Model];

/**
* 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;

/**
* Description of the function.
*
Expand Down
1 change: 0 additions & 1 deletion test/features/llm/test_llm_merge_parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const test_llm_merge_parameters = (): void => {
TestValidator.equals("atomics")(
HttpLlm.mergeParameters({
function: {
strict: true,
name: "test",
parameters: {
type: "object",
Expand Down
2 changes: 2 additions & 0 deletions test/utils/LlamaFunctionCaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export namespace LlamaFunctionCaller {
},
},
],
tool_choice: "required",
parallel_tool_calls: false,
});

const toolCalls: OpenAI.ChatCompletionMessageToolCall[] = [
Expand Down

0 comments on commit f380312

Please sign in to comment.