Lazarus and Copilot lazarus / 31-LCL ---------------------------------------------------------------------- affonso · 2024-10-28 16:40 Would the Lazarus IDE have something similar to Copilot or Codeium? I did some research and found a very good plugin, but for Delphi https://github.com/Code4Delphi/Delphi-AI-Developer https://www.youtube.com/watch?v=2NAlUFK2FGs&t=536s Is it possible to bring this project to Lazarus? ---------------------------------------------------------------------- Joanna · 2024-10-28 22:30 Hi this topic has already been discussed extensively. Please search forums. ---------------------------------------------------------------------- Bogen85 · 2024-10-29 01:54 Quote from: Joanna from IRC on October 28, 2024, 11:30:50 pmHi this topic has already been discussed extensively. Please search forums. It has? I just did a search. It has not been discussed in the past 9 months. And the last few threads on the subject of "Copilot" were not "extensive". There is this discussion: https://forum.lazarus.freepascal.org/index.php/topic,55581.0.html Which had a lot of "attacking" of the tech. I'm not a fan of "easy to leak my company's intellectual property" plugins in any editor, but that does not mean the technology is not useful for others. That this subject gets so much negativity makes it hard for others who truly want to (or have a need) to discuss it peacefully. Not good... ---------------------------------------------------------------------- Joanna · 2024-10-29 02:40 I remember quite a few threads of new people demanding that ai be incorporated into Lazarus Ide as well as a very long thread started by cpicanco touting ai stuff. I’d be happy if ai related stuff was never brought up here again and I’ll bet I’m not alone in this sentiment. ---------------------------------------------------------------------- Thaddy · 2024-10-29 06:10 If it is done in the way that Delphi 12.2 does it, I do not have any objections. It works with an AIprovider mechanism, where they have written providers for currently 3 different commercial AI providers and one local: ollama, which is on github. You can only use them if you have keys for those providers. That means that Delphi only facilitates AI providers in their IDE but does not offer AI itself and not by default. So it is an IDE plugin that abstracts away the different rest api's. The same approach could be used for Lazarus, just add a plugin that abstracts away the different engines in providers/connectors so they integrate in the IDE on request. AI integration in your own programs could already be done with e.g. my example from Christmas 2022 Not to forget Joao Schuler's exploits with models that can also run locally, similar to ollama. But usually this is about the IDE integration and if that is via a plugin I have no objections. Embarcadero presents it as a revolution in Delphi 12.2, but really it is not and made me laugh a bit. What I suspect Embarcadero did do, but that is a commercial decision, is encourge the commercial providers to explicitly scrape their public resources,i.e their manuals and blogs, but also their forums and some other semi publics that are behind passwords for the providers to give better answers. At least that is what I would have done. This will also benefit Freepascal and Lazarus users that use AI, because the models are better trained for our common language. ---------------------------------------------------------------------- Bogen85 · 2024-10-29 08:55 Quote from: Joanna from IRC on October 29, 2024, 03:40:28 amI’d be happy if ai related stuff was never brought up here again and I’ll bet I’m not alone in this sentiment. So? It is the mid 2020s, you are going to hear more of it. A lot more of it. You will just have to find a way live with it, AI is not going away. Maybe some of the hype will die down, but the leveraging of it as solid useful tech will not. Quote from: Bogen85 on October 29, 2024, 02:54:04 amThat this subject gets so much negativity makes it hard for others who truly want to (or have a need) to discuss it peacefully. Not good... I reiterate that. Also many who use Free Pascal (and many in these forums) find AI to be an invaluable time saving tool. Attacking what you and others view as useless/harmful tech is not productive for the many advanced users here who find it to be very useful tech and avail themselves of it where appropriate. Just because you don't use it or like it does not make those of that that leverage it as yet another helpful tool (though not a panacea) can't discuss how to best utilize it. For me personally I don't like or care for the Lazarus IDE. But I completely understand that is a very useful and invaluable tool for many others, and I see it as solid useful tech, just not for me personally. Just because you (and some others here) don't like AI does not make the experienced computer scientists and software engineers who utilize it regularly and benefit from from it all wrong. Useful tool, yes, if you want to use it. Panacea, no. Lazarus, useful tool, yes. Just not for me, and I'd never dissuade others from using it, especially if they like it and are not looking for an alternative. ---------------------------------------------------------------------- Joanna · 2024-10-29 12:04 I’m curious how well does ai work for computers not connected to the internet? Not everyone wants their development computer connected to the internet and there are many good reasons for that. I’m not worried about this AI fad. I will simply not install any ide that uses it. Even if it ”saves time” I’m sure that’s not the whole story. ---------------------------------------------------------------------- avra · 2024-10-29 14:00 Quote from: affonso on October 28, 2024, 05:40:29 pmWould the Lazarus IDE have something similar to Copilot or Codeium?Quick search brought these GPT related projects up: https://github.com/AliDehbansiahkarbon/ChatGPTPluginForLazarus https://github.com/landgraf-dev/openai-delphi https://forum.lazarus.freepascal.org/index.php/topic,61786.0.html Maybe you will find something interesting there... ---------------------------------------------------------------------- marcov · 2024-10-30 12:37 Moderator notice: I split off all the offtopic discussion about the use of AI into a separate thread. This thread is about integration AI services in Lazarus, not discussions why they are useful or not. ---------------------------------------------------------------------- Thaddy · 2024-10-30 16:25 Good idea Marco.