<div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;">Hi,</div>
<div class="protonmail_signature_block protonmail_signature_block-empty" style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;">
    <div class="protonmail_signature_block-user protonmail_signature_block-empty">
        
            </div>
    
            <div class="protonmail_signature_block-proton protonmail_signature_block-empty">
        
            </div>
</div>
<div style="font-family: Menlo, Consolas, Courier New, Monospace; font-size: 14px;"><br><div class="protonmail_quote">
        On Monday, May 19th, 2025 at 02:37, Justin Zobel <justin@1707.io> wrote:<br>
        <blockquote class="protonmail_quote" type="cite">
            
    <div class="moz-cite-prefix">On 19/05/2025 06:05, Ingo Klöcker
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre class="moz-quote-pre" wrap="">On Sonntag, 18. Mai 2025 21:32:20 Mitteleuropäische Sommerzeit Ingo Klöcker
wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Yes, there is the theoretical threat that an AI learned code that's under a
less liberal license like the GPL or even under one of the "new" not-OSI-
approved licenses used by certain companies to prevent Amazon from selling
services based on their code (or even proprietary code; for all we know, Co-
Pilot was trained with the entire source code written by Microsoft), but
that's only a problem if the AI cites this code literally so that we could
be sued for plagiarizing. How realistic is this threat?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">To turn this discussion into something positive: Maybe we should train our own
coding assistant AI(s) for Kate/KDevelop with code relevant for C++ and QML
which respects the licenses. We'd have an AI model for writing LGPL code that
was trained with KF and Qt source code (and other KDE code that's LGPL-
compatible) and we'd have a second AI model for writing GPL code that was
trained additionally with all of our GPL code.

Kate would automatically use the correct model based on the SPDX license of
the current file.

Regards,
Ingo</pre>
    </blockquote><div>
    A nice thought, but we would need to invest quite a bit of money
    into this to get it to work correctly, from my understanding.<br></div></blockquote><div><br></div><div>given I played already a bit longer with local running AI stuff via ollama, I tried to use the REST API</div><div><br></div><blockquote class="protonmail_quote" type="cite">
  
  


        </blockquote><span><a target="_blank" rel="noreferrer nofollow noopener" href="https://github.com/ollama/ollama/blob/main/docs/api.md">https://github.com/ollama/ollama/blob/main/docs/api.md</a></span><br>
    </div><div class="protonmail_quote"><br></div><div class="protonmail_quote">for a small Kate plugin skeleton:</div><div class="protonmail_quote"><br></div><div class="protonmail_quote"><span><a target="_blank" rel="noreferrer nofollow noopener" href="https://invent.kde.org/utilities/kate/-/merge_requests/1785">https://invent.kde.org/utilities/kate/-/merge_requests/1785</a></span><br></div><div class="protonmail_quote"><br></div><div class="protonmail_quote">that ATM just allows to send the current line as prompt and inserts the result below.</div><div class="protonmail_quote"><br></div><div class="protonmail_quote">The local port and model are hardcoded, as that is just a draft.</div><div class="protonmail_quote"><br></div><div class="protonmail_quote">If interest in getting such a thing up and running is there, help is welcome.</div><div class="protonmail_quote">Code completion is feasible with such a local setup, too. Just a matter of implementing the right prompting and filling</div><div class="protonmail_quote">a completion model with the results.</div><div class="protonmail_quote"><br></div><div class="protonmail_quote">With ollama no data will leave your machine.</div><div class="protonmail_quote"><br></div><div class="protonmail_quote">Naturally a question is which models should be promoted as default for licensing/...</div><div class="protonmail_quote"><br></div><div class="protonmail_quote">That plugin would not just work in Kate but in other KTextEditor plugin compatible applications like KDevelop or RKWard.</div><div class="protonmail_quote"><br></div><div class="protonmail_quote">Greetings</div><div class="protonmail_quote">Christoph</div></div>