When SlideDeck AI is run in offline mode, the Ollama model name has to be specified manually. An optional default model name may be provided to improve the user experience.
Introduce a new environment variable, DEFAULT_OFFLINE_MODEL_NAME. In the application, under the RUN_IN_OFFLINE_MODE block, add new code to retrieve the value of the env variable and, if defined or not empty, set the model name.
Tests
With default model name
- Set
DEFAULT_OFFLINE_MODEL_NAME=gemma3:1b in .env.
- Run the app in offline mode.
- The default model name should be visible in the app.
- Create a PPT with text inputs to verify that it's working.
Without default model name
- Remove
DEFAULT_OFFLINE_MODEL_NAME from .env.
- Run the app in offline mode.
- No default model name should be visible in the app.
- Set
gemma3:1b as the model name.
- Create a PPT with text inputs to verify that it's working.
When SlideDeck AI is run in offline mode, the Ollama model name has to be specified manually. An optional default model name may be provided to improve the user experience.
Introduce a new environment variable,
DEFAULT_OFFLINE_MODEL_NAME. In the application, under theRUN_IN_OFFLINE_MODEblock, add new code to retrieve the value of the env variable and, if defined or not empty, set the model name.Tests
With default model name
DEFAULT_OFFLINE_MODEL_NAME=gemma3:1bin.env.Without default model name
DEFAULT_OFFLINE_MODEL_NAMEfrom.env.gemma3:1bas the model name.