Niek / chatgpt-web

ChatGPT web interface using the OpenAI API
https://niek.github.io/chatgpt-web/
GNU General Public License v3.0
1.88k stars 466 forks source link

Use new ChatGPT function calling for something #177

Open Webifi opened 1 year ago

Webifi commented 1 year ago

There's now the ability for the model to request local function calls: https://platform.openai.com/docs/guides/gpt/function-calling

Trying to think of how the function requests apply to ChatGPT-web. Allowing custom functions would be interesting (allow entering script that can be executed), but since profiles can be shared, the security implications of this are enormous. (Sandboxing with something like JS-Interpreter could help, but not that much if the functions are going to be usefull.)

Some limited pre-made functions that could be enable and used with parameters could also be interesting, but what would they be?

Thoughts?

Niek commented 1 year ago

I'm thinking about this too... it should be possible to make a "browsing" plugin using function calling and puppeteer exposed witha simple JSON API. But pretty risky overall. Another (more straigh-forward) idea would be to have a non-chat mode, where we ask the model for structured JSON data. Not sure how to integrate and visualize this in the UI though.