shuxiao9058 / tabnine

An unofficial TabNine package for Emacs with TabNine Chat Supported
MIT License
33 stars 6 forks source link

Support for switchable models in tabnine chat #12

Open PGKANG opened 1 month ago

PGKANG commented 1 month ago

Tabnine chat support switchable models now. Is it possible to support this feature just like vscode? A lot of thanks in advance.

shuxiao9058 commented 1 month ago

It seems that my account can not switch the model yet.

shuxiao9058 commented 1 month ago

I have contact the TabNine team, this is the answer

Thanks for confirming that you have the legacy account.

The subscription that you have-- Tabnine Pro Personal, does not support Chat. You will need to change to Tabnine Pro Teams to access chat.

If you like, I can cancel the old subscription that you have and provide you with Tabnine Pro free for one year. After one year, you will be charged $144 which is the regular price.

So, the new feature is not available with my account.

Also PR is welcome.

jleechpe commented 6 days ago

I was trying to look into this (especially since they keep adding new models and it is now generally available), but they don't seem to have any API docs for how to specify which model to use (or even for any of the data you already used in chat. Is this something they provided directly when you reached out?

PGKANG commented 6 days ago

I didn't find any docs either. I tried this new feature in vscode.

shuxiao9058 commented 6 days ago

You can capture packets and analyze the details.

jleechpe commented 5 days ago

I was able to find the modelIds and it appeared to do something when I changed them (I can't get TabNine Chat to actually tell me which model it's running so I'm relying on differences in output style) but I could only get TabNine Protect and TabNine + Mistral to work. All the other (non-private) ones threw Unauthorized errors even though the payload looked like extremely similar to what VSCode was sending.