codota / tabnine-intellij

Jetbrains IDEs client for TabNine. Compatible with all IntelliJ-based IDEs. https://plugins.jetbrains.com/plugin/12798-tabnine
https://www.tabnine.com/install/intellij
MIT License
525 stars 67 forks source link

API Documentation of Tabnine Chat? #733

Closed tobiashochguertel closed 1 month ago

tobiashochguertel commented 1 month ago

I want to write a plugin to use the Tabnine Chat more efficiently. I'm looking for a API and Endpoint Documentation.

Is that available?

gz#35752

(related to Zendesk ticket #35752)

TzufTabnine commented 1 month ago

Hi, you can develop such a plugin yourself. Here is the guide: https://github.com/codota/TabNine/blob/master/HowToWriteAClient.md

tobiashochguertel commented 1 month ago

@TzufTabnine Thanks for this information. I checked out already and the current code of this repository https://github.com/codota/tabnine-intellij to figure out how the chat works and how I can build my own TabNine Chat App.

It's with the provided Information very hard to do.

The Chat is a different App at all. It's a Website which gets downloaded when TabNine binary is started, as I discovered. The source code of the Chat Website is minified, so no longer readable for humans. With the JCEF / Browser Debug Window in the IntelliJ Plugin, I'm able to see the requests which are being made by the chat website when I submit a question. That is a little help.

One of these requests which are made look interesting for my purposes, that is a POST to http://127.0.0.1:49825/generate but the Payload is a stream or something like it, not readable for humans. So I don't know how to create this request myself.

I'm a paying user of TabNine since a year or longer.