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

New function typia.llm.parameters(). #1374

Merged
merged 1 commit into from
Nov 23, 2024
Merged

New function typia.llm.parameters(). #1374

merged 1 commit into from
Nov 23, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Nov 23, 2024

This pull request includes several updates to the typia package and improvements to the handling of LLM (Large Language Model) applications. The most important changes include version updates in multiple package.json files and significant refactoring of the LLM application and schema handling code.

Version Updates:

  • Updated the typia package version in benchmark/package.json to 7.0.0-dev.20241124.
  • Updated the typia package version in package.json to 7.0.0-dev.20241124.
  • Updated the @samchon/openapi dependency version in package.json to 2.0.0-dev.20241124.
  • Updated the typescript-json package version in packages/typescript-json/package.json to 7.0.0-dev.20241124. [1] [2]

LLM Application Refactoring:

  • Simplified the _llmApplicationFinalize method to use a more concise options structure and removed the isChatGptOptions function.
  • Removed IChatGptSchema import and added a new parameters function in src/llm.ts for creating LLM parameters schema. [1] [2] [3] [4] [5]
  • Consolidated various LLM converters into a single LlmSchemaConverter in LlmApplicationProgrammer.ts and LlmSchemaProgrammer.ts. [1] [2] [3] [4] [5] [6] [7] [8] [9]

These changes aim to streamline the codebase, reduce redundancy, and ensure compatibility with the latest versions of dependencies.

@samchon samchon added the enhancement New feature or request label Nov 23, 2024
@samchon samchon self-assigned this Nov 23, 2024
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.

OK, no problem.

Copy link

pkg-pr-new bot commented Nov 23, 2024

Open in Stackblitz

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

commit: 458832e

Copy link

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

Package New capabilities Transitives Size Publisher
npm/@fastify/type-provider-typebox@3.6.0 None 0 25.5 kB matteo.collina
npm/@sinclair/typebox@0.31.28 None 0 536 kB sinclair
npm/@trivago/prettier-plugin-sort-imports@3.4.0 Transitive: environment, eval, filesystem, shell, unsafe +34 12.4 MB ayusharma
npm/@typegoose/typegoose@10.5.0 environment Transitive: eval, filesystem, network +101 15.6 MB hasezoey
npm/@types/autocannon@7.12.5 None 0 21.8 kB types
npm/@types/benchmark@2.1.5 None 0 9.24 kB types
npm/@types/d3@7.4.3 None +31 1 MB types
npm/@types/physical-cpu-count@2.0.2 None 0 3.23 kB types
npm/@types/uuid@8.3.4 None 0 6.67 kB types
npm/@typescript-eslint/eslint-plugin@5.62.0 Transitive: environment, eval, filesystem, unsafe +97 15.3 MB jameshenry
npm/@typescript-eslint/parser@5.62.0 Transitive: environment, eval, filesystem, unsafe +90 12.1 MB jameshenry
npm/autocannon@7.15.0 environment, filesystem, network, shell Transitive: eval, unsafe +34 2.92 MB matteo.collina
npm/benchmark@2.1.4 eval +1 138 kB jdalton
npm/class-transformer@0.5.1 None 0 776 kB typestack-release-bot
npm/class-validator@0.14.1 None +3 14.3 MB typestack-release-bot
npm/d3@5.16.0 Transitive: filesystem, network, shell +35 4.01 MB mbostock
npm/eslint-plugin-deprecation@1.6.0 Transitive: environment, eval, filesystem, unsafe +96 14.2 MB gund
npm/express@4.21.1 environment, filesystem, network Transitive: eval, unsafe +55 1.63 MB ulisesgascon
npm/fast-json-stringify@5.16.1 eval +5 622 kB jsumners
npm/fastify@4.28.1 Transitive: environment, eval +39 4.97 MB eomm
npm/io-ts@2.2.21 None +1 5.2 MB gcanti
npm/jsdom@21.1.2 eval, filesystem, network, shell, unsafe Transitive: environment +46 7.7 MB domenic
npm/physical-cpu-count@2.0.0 shell 0 3.14 kB seb
npm/prettier@2.8.8 environment, filesystem, unsafe 0 11.2 MB prettier-bot
npm/reflect-metadata@0.1.14 None 0 295 kB rbuckton
npm/tgrid@0.10.3 Transitive: network +4 695 kB samchon
npm/zod@3.23.8 None 0 667 kB colinmcd94

🚮 Removed packages: npm/@rollup/plugin-commonjs@26.0.3, npm/@rollup/plugin-node-resolve@15.3.0, npm/@rollup/plugin-typescript@11.1.6, npm/@samchon/openapi@2.0.0-dev.20241123-6, npm/@types/inquirer@8.2.10, npm/@types/prettier@3.0.0, npm/@types/react@18.3.12, npm/@typescript-eslint/eslint-plugin@7.18.0, npm/@typescript-eslint/parser@7.18.0, npm/commander@10.0.1, npm/comment-json@4.2.5, npm/inquirer@8.2.6, npm/package-manager-detector@0.2.4, npm/rollup@4.27.4, npm/ts-expose-internals@5.5.4, npm/typescript@5.6.3, npm/typia@7.0.0-dev.20241123

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Critical CVE npm/@babel/traverse@7.17.3 ⚠︎

View full report↗︎

Next steps

What is a critical CVE?

Contains a Critical Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/@babel/traverse@7.17.3

@samchon samchon merged commit c57253c into v7.0 Nov 23, 2024
10 checks passed
@samchon samchon deleted the feat/llm branch November 23, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant