-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Develop samchon/openapi#124 and samchon/openapi#125. #1459
Conversation
As OpenAI (ChatGPT) restricts function name and description lengths (64 and 1,024), `@samchon/openapi`'s `HttpLlm.application()` function converting OpenAPI document to LLM function calling application has adopted it. Therefore, this PR makes `typia` to occur compilation error when 64 length over function name comes, or 1,024 length over descripted function comes. Also, `typia` has allowed empty parameterized functions in the `typia.llm.application()` function.
commit: |
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎ To accept the risk, merge this PR and you will not be notified again.
Next stepsWhat 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 dependencyTake 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 packageIf 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 riskTo ignore an alert, reply with a comment starting with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test OK.
As OpenAI (ChatGPT) restricts function name and description lengths (64 and 1,024),
@samchon/openapi
'sHttpLlm.application()
function converting OpenAPI document to LLM function calling application has adopted it.Therefore, this PR makes
typia
to occur compilation error when 64 length over function name comes, or 1,024 length over descripted function comes.Also,
typia
has allowed empty parameterized functions in thetypia.llm.application()
function.This pull request includes several updates to dependencies and improvements in the codebase. The most important changes include updating the
typescript
version across multiplepackage.json
files, adding and modifying functions in theJsonApplicationProgrammer
andLlmApplicationProgrammer
namespaces, and introducing new test cases.Dependency updates:
typescript
version from~5.7.2
to~5.7.3
in multiplepackage.json
files, includingbenchmark/package.json
[1]package.json
[2]test-error/package.json
[3]test-esm/package.json
[4]test/package.json
[5] andwebsite/package.json
[6].Function additions and modifications:
writeDescription
function toJsonApplicationProgrammer
namespace and removed the previous implementation [1] [2].LlmApplicationOfValidateProgrammer
to handlenull
parameters and added a fallback forwriteValidadtor
whenparameter
isnull
[1] [2].LlmApplicationProgrammer
for clarity and added validation for function descriptions and names [1] [2] [3] [4] [5].New test cases:
test-error/src/llm/llm.application.length.ts
to validate LLM application length constraints.test/src/debug/llm.ts
to validate LLM application.