Open isaacphi opened 4 months ago
This is fantastic -- and quite a small change too! Thanks for the PR, this looks quite promising.
I'm not familiar with the OpenAI function-calling API. I'll take a look at it soon and then think about the UI, it'll probably be a few days from now.
Demo
I made a quick screen recording showing the proof of concept: https://screenapp.io/app/#/shared/6d146099-4bc3-4b34-afd7-bff3d16ee0ed
Overview
I've added support for Function Calling to gptel. This is just a proof of concept that I wanted to share before going any further.
First I want to thank you for making this package! It's become a seamless part of my emacs workflow because of how well it blends in, in particular using
gptel-send
for some of my own scripts. I think that supporting function calls would fit in well with the design philosophy of this package, allowing users to define their own callable functions for their own use cases. Some use cases I can think of off hand:I should note that function calls are not specific to OpenAI, they're available many if not all of the other models you support.
Before moving on, I'd like to know if this is even something you'd be interested in including in gptel. I'd also like to know your thoughts on how the user would use this feature. So far this is what I'm thinking:
How to test this PR
test-user-config.el
Let me know what you think! Feel free to open a discussion if you think that's a more appropriate venue for this. Related issue: #76