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

HttpLlm.appliation() escapes some special characters. #117

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

samchon
Copy link
Owner

@samchon samchon commented Dec 20, 2024

ChatGPT allows only /^[a-zA-Z0-9_-]+$/ characters in the tool calling function name. By the way, $ and % characters are often shown in the URL path.

For such special characters, this PR replaces them to _ character to successfully composing LLM function calling application from the OpenAPI document.


This pull request includes changes to the package.json file and the HttpLlmApplicationComposer.ts file to update the version number and improve the handling of function names. The most important changes are:

Version update:

Function name handling improvements:

ChatGPT allows only `/^[a-zA-Z0-9_-]+$/` characters in the tool calling function name. By the way, `$` and `%` characters are often shown in the URL path.

For such special characters, this PR replaces them to `_` character to successfully composing LLM function calling application from the OpenAPI document.
@samchon samchon added bug Something isn't working enhancement New feature or request labels Dec 20, 2024
@samchon samchon self-assigned this Dec 20, 2024
@samchon
Copy link
Owner Author

samchon commented Dec 20, 2024

Fix #116, so update to 2.3.1 @kakasoo

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 3d92b1d into master Dec 20, 2024
3 checks passed
@samchon samchon deleted the feat/escape branch December 20, 2024 13:34
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
No open projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant