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

Adapt samchon/openapi#112: ChatGPT strict mode configurable. #1434

Merged
merged 2 commits into from
Dec 14, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Dec 14, 2024

This pull request includes several updates and improvements across multiple files, primarily focusing on updating package versions, enhancing the validation logic for LLM models, and adding support for stricter validation configurations.

Package Updates:

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

Validation Enhancements:

  • Refactored the validate function in LlmApplicationProgrammer, LlmParametersProgrammer, and LlmSchemaProgrammer to accept a configuration object, allowing for more flexible validation based on model-specific configurations. [1] [2] [3] [4] [5] [6] [7]

Transformer Updates:

  • Updated various transformers (LlmApplicationOfValidateTransformer, LlmApplicationTransformer, LlmParametersTransformer, LlmSchemaTransformer) to utilize the new configuration-based validation approach. This includes fetching and passing the configuration to the validation functions. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Test Additions:

  • Added tests for the new strict validation mode for the chatgpt model, ensuring that additional properties and optional properties are correctly handled. [1] [2] [3]

Minor Fixes:

  • Removed redundant validation logic for gemini model in TestLlmApplicationGenerator.

@samchon samchon added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 14, 2024
@samchon samchon self-assigned this Dec 14, 2024
Copy link

pkg-pr-new bot commented Dec 14, 2024

Open in Stackblitz

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

commit: 829b866

Copy link

pkg-pr-new bot commented Dec 14, 2024

Open in Stackblitz

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

commit: b601802

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] Transitive: environment, filesystem, shell +63 12.1 MB samchon

View full report↗︎

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 51d7531 into master Dec 14, 2024
8 checks passed
@samchon samchon deleted the feat/chatgpt branch December 14, 2024 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant