IHttpLlmFunction.name
's maximum length limit.
#120
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As ChatGPT does not allow 64 length over function name, this PR shorten it.
This pull request includes several changes aimed at improving the functionality and robustness of the
HttpLlm
module. The main changes include adding a new feature to limit the length of function names, updating type definitions, and adding a new test to validate these changes.Key Changes:
Feature Enhancements:
maxLength
option to limit the length of function names inHttpLlm
applications. If a function name exceeds this length, it will be truncated or replaced with a UUID if necessary. (src/HttpLlm.ts
,src/composers/HttpLlmApplicationComposer.ts
,src/structures/IHttpLlmApplication.ts
,src/structures/IHttpLlmFunction.ts
,src/structures/ILlmFunction.ts
) [1] [2] [3] [4] [5] [6]Testing:
test_http_llm_application_funtion_name_length.ts
to ensure that function names inHttpLlm
applications do not exceed the specifiedmaxLength
and are unique. (test/features/llm/test_http_llm_application_funtion_name_length.ts
)Version Update:
@samchon/openapi
package from2.3.2
to2.3.3
. (package.json
)