- Issue created by @unqunq
- π¬π§United Kingdom unqunq
I found out that the issue is in the AiProviderFormHelper.php file.
This part needs a bit of work because it seems that it's complaining when generating the links to models.
Link::fromTextAndUrl($text, Url::fromRoute('ai.edit_model_settings_form', [ 'operation_type' => $operation_type['id'], 'provider' => $provider->getPluginId(), 'model_id' => $id, ], [ 'query' => [ 'destination' => $this->currentPath->getPath(), ], ])),
- π¬π§United Kingdom unqunq
Looks like it's working fine with model labels like "deepseek-r1:32b" but when they have a '/' then it crashes.
Example model "nezahatkorkmaz/deepseek-v3:latest" or "brxce/stable-diffusion-prompt-generator:latest" - π©πͺGermany jan kellermann
jan kellermann β made their first commit to this issueβs fork.
- π©πͺGermany jan kellermann
I just played around to mitigate this issue in ai-module and used base64_encode/decode for generating URL, but then I got error message while saving form:
Model ID can only contain letters, numbers, hyphens and underscores.
So I think this module has to sanitize or transliterate model_id.
- π©πͺGermany jan kellermann
I pushed some code to the issue code. Maybe someone will have a look. It os a proof of concept. I will continue work later.
- Merge request !12Resolve #3530153 "Symfonycomponentroutingexceptioninvalidparameterexception parameter modelid" β (Open) created by jan kellermann
- π¬π§United Kingdom rakesh.gectcr Manchester
After applying the last MR, I am getting the following error
Failed to get models from Ollama: cURL error 3: URL using bad/illegal format or missing URL (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://host.docker.internal/api/tags
Also, this erros is reported
https://www.drupal.org/project/ai_provider_ollama/issues/3521789 π Unable to configure ollama on fresh D11 site Active - π¬π§United Kingdom rakesh.gectcr Manchester
Added the correct Dependency for the Drupal\Core\Http\ClientFactory