[GH-ISSUE #8607] Add an ability to inject env variables to modelfile system message. #5567

Open
opened 2026-04-12 16:50:04 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @BotVasya on GitHub (Jan 27, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8607

Hi All.
I`ve realized that that there is no way to make ollama models to know current date and time if it runs on ms windows. So I believe that would be useful if there would be possibility to use OS variables in the modelfile. Especially for date and time it would be better if model could obtain that data dynamically, just when it needed.

Use case: model could answer what date and time it is.

Originally created by @BotVasya on GitHub (Jan 27, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8607 Hi All. I`ve realized that that there is no way to make ollama models to know current date and time if it runs on ms windows. So I believe that would be useful if there would be possibility to use OS variables in the modelfile. Especially for date and time it would be better if model could obtain that data dynamically, just when it needed. Use case: model could answer what date and time it is.
GiteaMirror added the feature request label 2026-04-12 16:50:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5567