Hi everyone,
I’m currently developing an extension for Cursor to automatically toggle the OpenAI proxy based on the selected model. As of now, the proxy management system in Cursor is quite limited (just ON/OFF).
In my case, I’d like the proxy to activate automatically if the Llama model is selected and deactivate if I switch to GPT-4.
I’ve already identified the necessary information in the state.vscdb
file to detect which model is selected in the composer and whether the proxy is ON or OFF. I’ve also found a VSCode command in the shortcuts to toggle the proxy.
However, I still need to figure out how to detect if the Quick Chat is open or closed (cmd+k
). Does anyone have any ideas on how to do this? Maybe a hook or a method to monitor this state?
Thanks in advance for your suggestions!