No description
  • Shell 64.4%
  • Dockerfile 32.5%
  • JavaScript 3.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-04-12 17:16:36 +02:00
.agents 🛟 Updated. 2026-04-05 11:20:39 +02:00
.gitignore 🛟 Updated. 2026-04-05 11:20:39 +02:00
bad.request.dmr.sh 🛟 Updated. 2026-04-10 13:51:40 +02:00
compose.custom.provider.ollama.yml 🛟 Updated. 2026-04-10 13:51:40 +02:00
compose.custom.provider.patched.yml 🛟 Updated. 2026-04-10 13:51:40 +02:00
compose.custom.provider.yml 🛟 Updated. 2026-04-12 17:16:36 +02:00
compose.yml 🛟 Updated. 2026-04-05 11:20:39 +02:00
config.custom.provider.ollama.yaml 🛟 Updated. 2026-04-10 13:51:40 +02:00
config.custom.provider.patched.yaml 🛟 Updated. 2026-04-10 13:51:40 +02:00
config.custom.provider.yaml 🛟 Updated. 2026-04-12 17:16:36 +02:00
config.yaml 🛟 Updated. 2026-04-05 11:20:39 +02:00
Dockerfile 🛟 Updated. 2026-04-10 13:51:40 +02:00
git.sh 🛟 Updated. 2026-04-05 11:20:39 +02:00
LICENSE Initial commit 2026-04-05 07:39:19 +02:00
README.md 🛟 Updated. 2026-04-05 14:38:45 +02:00
start.custom.sh 🛟 Updated. 2026-04-10 13:51:40 +02:00
start.ollama.sh 🛟 Updated. 2026-04-10 13:51:40 +02:00
start.patched.sh 🛟 Updated. 2026-04-10 13:51:40 +02:00
start.sh 🛟 Updated. 2026-04-10 13:51:40 +02:00

custom-provider-tests

With the dmr provider (it works)

Model settings:

models:

  brain:
    provider: dmr
    model: huggingface.co/unsloth/qwen3.5-2b-gguf:Q4_K_M
    temperature: 0.0
    top_p: 0.95
    presence_penalty: 1.5 
    max_tokens: 65536
docker compose run --rm --build bob
  • question: "what is your quest?"

Request:

{
  "max_tokens": 65536,
  "messages": [
    {
      "content": "You are Bob, a coding expert\n\n## Custom Shell Tools\n\n### execute_command\nExecute a shell command and return its stdout and stderr output.\n- `command`: The shell command to execute.\n\n\nSkills provide specialized instructions for specific tasks. When a user's request matches a skill's description, use read_skill to load its instructions.\n\n<available_skills>\n  <skill>\n    <name>what-time-is-it</name>\n    <description>display the current date and time</description>\n  </skill>\n  <skill>\n    <name>greetings</name>\n    <description>when the user writes \"node greetings\" to somebody, the agent will run this skill with the appropriate parameter.</description>\n  </skill>\n  <skill>\n    <name>vulcan-salute</name>\n    <description>when the user writes \"vulcan salute\" or \"vulcan-salute\" to somebody, the agent will run this skill with the appropriate parameter.</description>\n  </skill>\n</available_skills>",
      "role": "system"
    },
    {
      "content": "what is your quest?",
      "role": "user"
    }
  ],
  "model": "huggingface.co/unsloth/qwen3.5-2b-gguf:Q4_K_M",
  "parallel_tool_calls": true,
  "presence_penalty": 1.5,
  "stream": true,
  "stream_options": {
    "include_usage": true
  },
  "temperature": 0,
  "tools": [
    {
      "function": {
        "description": "Execute a shell command and return its stdout and stderr output.",
        "name": "execute_command",
        "parameters": {
          "properties": {
            "command": {
              "description": "The shell command to execute.",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "function"
    },
    {
      "function": {
        "description": "Read the content of a skill by name. Use this when a user's request matches an available skill.",
        "name": "read_skill",
        "parameters": {
          "properties": {
            "name": {
              "description": "The name of the skill to read",
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        }
      },
      "type": "function"
    }
  ],
  "top_p": 0.95
}

With the custom provider (error)

providers:
  host_dmr_provider:
    api_type: openai_chatcompletions
    base_url: http://host.docker.internal:12434/engines/v1

models:

  brain:
    provider: host_dmr_provider
    #provider: dmr
    model: huggingface.co/unsloth/qwen3.5-2b-gguf:Q4_K_M
    temperature: 0.0
    top_p: 0.95
    presence_penalty: 1.5
    max_tokens: 65536
docker compose -f compose.custom.provider.yml run --rm --build bob-custom
  • question: "what is your favourite colour?"
all models failed: error receiving from stream: HTTP 500: POST
"http://host.docker.internal:12434/engines/v1/chat/completions": 500 Internal Server Error
{"code":500,"message":"\n------------\nWhile executing CallExpression at line 85, column 32 in
source:\n...first %}↵            {{- raise_exception('System message must be at the beginnin...\n
^\nError: Jinja Exception: System message must be at the beginning.","type":"server_error"}
{
  "max_tokens": 65536,
  "messages": [
    {
      "content": "You are Bob, a coding expert\n",
      "role": "system"
    },
    {
      "content": "## Custom Shell Tools\n\n### execute_command\nExecute a shell command and return its stdout and stderr output.\n- `command`: The shell command to execute.\n\n",
      "role": "system"
    },
    {
      "content": "Skills provide specialized instructions for specific tasks. When a user's request matches a skill's description, use read_skill to load its instructions.\n\n<available_skills>\n  <skill>\n    <name>greetings</name>\n    <description>when the user writes \"node greetings\" to somebody, the agent will run this skill with the appropriate parameter.</description>\n  </skill>\n  <skill>\n    <name>vulcan-salute</name>\n    <description>when the user writes \"vulcan salute\" or \"vulcan-salute\" to somebody, the agent will run this skill with the appropriate parameter.</description>\n  </skill>\n  <skill>\n    <name>what-time-is-it</name>\n    <description>display the current date and time</description>\n  </skill>\n</available_skills>",
      "role": "system"
    },
    {
      "content": "what is your favourite colour?",
      "role": "user"
    }
  ],
  "model": "huggingface.co/unsloth/qwen3.5-2b-gguf:Q4_K_M",
  "parallel_tool_calls": true,
  "presence_penalty": 1.5,
  "stream": true,
  "stream_options": {
    "include_usage": true
  },
  "temperature": 0,
  "tools": [
    {
      "function": {
        "description": "Execute a shell command and return its stdout and stderr output.",
        "name": "execute_command",
        "parameters": {
          "additionalProperties": false,
          "properties": {
            "command": {
              "description": "The shell command to execute.",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "command"
          ],
          "type": "object"
        }
      },
      "type": "function"
    },
    {
      "function": {
        "description": "Read the content of a skill by name. Use this when a user's request matches an available skill.",
        "name": "read_skill",
        "parameters": {
          "additionalProperties": false,
          "properties": {
            "name": {
              "description": "The name of the skill to read",
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        }
      },
      "type": "function"
    }
  ],
  "top_p": 0.95
}

With Ollama custom provider (it works)

providers:
  host_ollama_provider:
    api_type: openai_chatcompletions
    base_url: http://host.docker.internal:11434/v1

models:

  brain:
    provider: host_ollama_provider
    #provider: dmr
    model: qwen3.5:2b
    temperature: 0.0
    top_p: 0.95
    presence_penalty: 1.5
    max_tokens: 65536

do not forget to run ollama pull qwen3.5:2b before testing the Ollama provider

docker compose -f compose.custom.provider.ollama.yml run --rm --build riker-custom
  • question: "what is the air-speed velocity of an unladen swallow?"

docker compose -f compose.custom.provider.patched.yml run --rm --build milo-custom