Optimus : applications and GPU's choice

i fave created a desktop file in /usr/share/application.
glxspere64 is well executed with nvidia GPU
but it fails with ollama

ollama does not yet seem to be designed to handle this type of configuration.