I tried making a plugin with ChatGPT that would be able to bulk create storage locatins #4016
Replies: 3 comments 2 replies
-
Yeah that is not valid code for a plugin. It reads like it could be but it is not. There are fundamental misunderstandings about the structure in it. Might be trained on a codebase from 2020 or so. |
Beta Was this translation helpful? Give feedback.
-
Im currently working on something like this. I already have a POC, but there is much to do with UI. But I'm currently very limited in time. But I plan to continue working on it in a few weeks. |
Beta Was this translation helpful? Give feedback.
-
Well this was certainly an interesting read! Both the python interface code and the plugin code look "convincing" - but neither work work. I'm not sure if there is any indication that ChatGPT knows how to interface with InvenTree at all. But it does do a very good job of generating code that seems like it would do what you would ask it to. In any case, it's pretty incredible tech. But no, none of the code above would actually "work" ;) |
Beta Was this translation helpful? Give feedback.
-
After watching the Wan Show i tried messing with ChatGPT and I remembered that I had to create each location by hand and I tried just asking for a python script and it seemed to output a correct code, after that I used the example the user luwol03 showed in the issue he created and after that code was done i asked it to make it into a plugin and it looks like something that would work but to my untrained eye I can't really confirm if its working or not.
Could someone take a look at it?
If this things works I'm sure a couple of programmers are going to lose their jobs.
This looks to good to be true.
This script will use a regular expression to extract the list of ranges from the given
name_pattern
, and then use these ranges to generate the list of storage locations. The script will automatically handle ranges that use numbers and ranges that use letters, as well as ranges that use the "+" symbol to combine multiple ranges.Beta Was this translation helpful? Give feedback.
All reactions