[GH-ISSUE #7089] [prompt] add ollama configuration file #30261

Open
opened 2026-04-22 09:47:13 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @abitrolly on GitHub (Oct 3, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7089

I think we can now try eating our own dog food, and let LLM write the code to solve second most voted issue "Please don't clutter the user home directory" (https://github.com/ollama/ollama/issues/228).

Here is my try at prompting.


Please write the code to add config file to ollama project. The config provides lookup values for envconfig variables. The file should be in standard OS location, which is ~/.config/ollama/config.toml on Linux.

The code should be commented, and variable lookup order printed in debug mode.

An example config file should be included with all variables commented, and set to their default values.


Originally created by @abitrolly on GitHub (Oct 3, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7089 I think we can now try eating our own dog food, and let LLM write the code to solve [second most voted](https://github.com/ollama/ollama/issues?q=config+file+is%3Aopen+sort%3Areactions-%2B1-desc) issue "Please don't clutter the user home directory" (https://github.com/ollama/ollama/issues/228). Here is my try at prompting. --- Please write the code to add config file to `ollama` project. The config provides lookup values for `envconfig` variables. The file should be in standard OS location, which is `~/.config/ollama/config.toml` on Linux. The code should be commented, and variable lookup order printed in debug mode. An example config file should be included with all variables commented, and set to their default values. ---
GiteaMirror added the feature request label 2026-04-22 09:47:13 -05:00
Author
Owner

@abitrolly commented on GitHub (Nov 12, 2024):

The entrypoint is https://github.com/ollama/ollama/blob/main/envconfig/config.go

<!-- gh-comment-id:2469733678 --> @abitrolly commented on GitHub (Nov 12, 2024): The entrypoint is https://github.com/ollama/ollama/blob/main/envconfig/config.go
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#30261