intitni / CustomSuggestionServiceForCopilotForXcode

Use locally run models (OpenAI compatible APIs, Tabby, Ollama) to generate code suggestions for Xcode.
MIT License
30 stars 4 forks source link

TODO: Trim the response suffix when they are identical to the request suffix #2

Closed intitni closed 6 months ago

intitni commented 6 months ago

Sometimes the models will generate trailing parenthesis even though they are already in the source code.

Can it be done by prompt engineering?

intitni commented 6 months ago

Looks like CodeLlama supports a prompt format that can be used to generate fill-in-the-middle content https://ollama.com/library/codellama

intitni commented 6 months ago

Released in 0.2.0