Closed fxcl closed 1 week ago
Sorry I don't think I fully understand what is going on. Are you showing output from LSP-AI here? It might be helpful to take a video or breakdown step by step what is going on.
Also note that you can play around with prompts if you don't like the output you are getting. If you want to code in just Python, it may be worth adjusting the few shot prompts to be only in Python. These could be some fun experiments worth testing.
In the code generated using LSP AI, there will be a markdown code syntax as shown in the figure, but I only want to keep the code, and other code syntax does not need to be displayed in cursor.
This is a mixture of not the best prompt, and a limitation of LLMs. Its really difficult to get them to do code completion correctly, and that prompt that I came up with is definitely not the best. You are welcome to play around with the prompt, or try a FIM model like Codestral
The code generated using the above prompt needs to be deleted before it can be used. Is there any good way to directly delete it?
def TreeNode:```python
Binary tree node definition