Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LLM schema recursive type detector. #1438

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Fix LLM schema recursive type detector. #1438

merged 2 commits into from
Dec 16, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Dec 16, 2024

This pull request includes several updates to version numbers, dependencies, and functionality related to LLM schema validation. The most important changes include updating package versions, adding support for new schema types, and implementing new validation rules for recursive objects and arrays.

Version and Dependency Updates:

  • Updated the typia package version to 7.4.1-dev.20241216-2 and the @samchon/openapi dependency to ^2.2.1 in package.json and packages/typescript-json/package.json [1] [2] [3] [4] [5].

Functionality Enhancements:

  • Added an optional validate property to the JsonMetadataFactory namespace and implemented logic to handle this new property in src/factories/JsonMetadataFactory.ts [1] [2].
  • Introduced new schema types IGeminiSchema and ILlmSchemaV3 and added validation rules for non-recursive objects and arrays in src/programmers/llm/LlmSchemaProgrammer.ts [1] [2].

Test Cases:

  • Added new test cases for validating non-recursive objects and arrays for the "gemini" model in test-error/src/llm/llm.gemini.recursive.ts.
  • Added new test cases for validating non-recursive objects and arrays for the "3.0" model in test-error/src/llm/llm.v30.recursive.ts.

@samchon samchon added bug Something isn't working enhancement New feature or request labels Dec 16, 2024
@samchon samchon self-assigned this Dec 16, 2024
Copy link

pkg-pr-new bot commented Dec 16, 2024

Open in Stackblitz

npm i https://pkg.pr.new/typia@1438

commit: 5f8f3d8

Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test OK.

@samchon samchon merged commit f7ea8ac into master Dec 16, 2024
9 checks passed
@samchon samchon deleted the feat/json-validate branch December 18, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant