[GH-ISSUE #6376] Dynamic Functions Load #4005

Open
opened 2026-04-12 14:52:37 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @ivostoykov on GitHub (Aug 15, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6376

Hi All,

As this is the first post here, I'd like to say thank you for the great work everyone is doing! I love ollama and am using it permanently.

It is great that function support has been added and in relation to that I was wondering if you could extend it by adding an option to load preconfigured functions from a JSON file somewhere - i.e. ~/.config/ollama_func.json or ~/.ollama/func.json with something like:

{
  "user_functions": [
    {
      "type": "function",
      "function": {
        "name": "get_current_weather",
        "description": "Get the current weather for a city",
        "parameters": {
          "type": "object",
          "properties": {
            "city": {
              "type": "string",
              "description": "The name of the city"
            }
          },
          "required": [
            "city"
          ]
        }
      }
    }
  ]
}

and, on server (re)start, automatically add these to the list or create it if none exist.

Cheers,
Ivo

Originally created by @ivostoykov on GitHub (Aug 15, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6376 Hi All, As this is the first post here, I'd like to say thank you for the great work everyone is doing! I love `ollama` and am using it permanently. It is great that function support has been added and in relation to that I was wondering if you could extend it by adding an option to load preconfigured functions from a JSON file somewhere - i.e. `~/.config/ollama_func.json` or `~/.ollama/func.json` with something like: ``` { "user_functions": [ { "type": "function", "function": { "name": "get_current_weather", "description": "Get the current weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string", "description": "The name of the city" } }, "required": [ "city" ] } } } ] } ``` and, on server (re)start, automatically add these to the list or create it if none exist. Cheers, Ivo
GiteaMirror added the feature request label 2026-04-12 14:52:37 -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#4005