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

[Feature Request] Add support for ChatGPT function calling #109

Open
jtmoulia opened this issue Jun 16, 2023 · 3 comments
Open

[Feature Request] Add support for ChatGPT function calling #109

jtmoulia opened this issue Jun 16, 2023 · 3 comments

Comments

@jtmoulia
Copy link
Contributor

ChatGPT recently added support for "function calling" where you can provide jsonschema specifying functions and their typed arguments. The model can then decide to return json as "function calls" if appropriate.

It would be amazing if chatgpt-shell could be extended to support functions in the configuration as well as response

https://platform.openai.com/docs/guides/gpt/function-calling

Thanks for a super useful lib!

@jtmoulia jtmoulia changed the title Add support for ChatGPT function calling [Feature Request] Add support for ChatGPT function calling Jun 23, 2023
@xenodium
Copy link
Owner

Thanks for filing! Not had a chance to look into it. Will share more once I learn more.

@xenodium
Copy link
Owner

xenodium commented Oct 4, 2024

It's been quite some time now since filed. While I still haven't looked into it, has function calling generally been proven useful? Reckon still worth investigating?

@jtmoulia
Copy link
Contributor Author

jtmoulia commented Oct 6, 2024

Function calling / tool support does seem both useful and standardized, but I've come to feel like it'd add a lot of surface area to this lib.

It would allow for chatgpt-shell to integrate with other tools, but each integration would require infrastructure, e.g. to use web search would require jsonschema and code to hit a search engine / get results on request.

Given the potential for fragmentation if every lib tries to implement a custom function calling stack, it might be worth wait and see if another Emacs lib develops out function calling and piggy-backing off that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants