Hello everyone,
great concepts and work so far! Very cool to see that LLMs are on the radar for XWiki.
I was testing the initial LLM Application release and found a bug. However, I am not sure where I can report it properly so apologies if this is not the right place - I have not found another way to contact you.
The problem is that accessing models rest endpoint (and probably the others too) is not working properly when loading the application in the editor. I have identified the following problem:
In the code the request seems to be hardcoded with an /xwiki prefix before the /rest/v1/…. From my research it seems that this only works when XWiki is not deployed as the ROOT application but under the xwiki-context. This is, however, not the case in the default xwiki docker images that we are using at my company. And I think the default settings for other deployment methods also don’t use the /xwiki prefix. More on the URL prefix topic here, it seems to be defined via the xwiki.webapppath property in xwiki.cfg: Short URLs (XWiki.org)
Is there a way to incorporate this config option into the request generation?
Keep up the great work!